Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gershomb
GHC
Commits
e3df1b1e
Commit
e3df1b1e
authored
9 years ago
by
Thomas Miedema
Browse files
Options
Downloads
Patches
Plain Diff
Validate: explain THREADS instead of CPUS in --help
parent
0d1a8d09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
validate
+9
-8
9 additions, 8 deletions
validate
with
10 additions
and
9 deletions
.travis.yml
+
1
−
1
View file @
e3df1b1e
...
...
@@ -50,4 +50,4 @@ script:
-
if [ "$DEBUG_STAGE2" = "YES" ]; then echo 'GhcStage2HcOpts += -DDEBUG' >> mk/validate.mk; fi
# Don't use --quiet, as it might cause the testsuite to not print output for
# over 10 minutes, causing Travis to kill our job.
-
CPU
S=
2
SKIP_PERF_TESTS=YES ./validate --fast
-
THREAD
S=
3
SKIP_PERF_TESTS=YES ./validate --fast
This diff is collapsed.
Click to expand it.
validate
+
9
−
8
View file @
e3df1b1e
...
...
@@ -20,17 +20,18 @@ Flags:
HTML generated here: testsuite/hpc_output/hpc_index.html
--fast Omit dyn way, omit binary distribution
--slow Build stage2 with -DDEBUG. Skips tests that call
`
compiler_stats_num_field
`
.
compiler_stats_num_field.
2008-07-01: 14% slower than the default.
--dph
:
Also build libraries/dph and run associated tests.
--quiet
:
More pretty build log.
--dph
Also build libraries/dph and run associated tests.
--quiet
More pretty build log.
See Note [Default build system verbosity].
--help shows this usage help.
Set environment variable 'CPUS' to number of cores, to exploit
multiple cpu cores, e.g.
validate runs 'make -j
\$
THREADS', where by default THREADS is the number of
cpus your computer has +1. You can set the environment variable THREADS to
override this. For a sequential build you would for example use
CPU
S=
8
./validate
THREAD
S=
1
./validate
EOF
}
...
...
@@ -121,8 +122,6 @@ detect_cpu_count () {
# nothing helped
CPUS
=
"1"
fi
echo
"using
${
CPUS
}
CPUs"
>
&2
}
detect_cpu_count
...
...
@@ -139,6 +138,8 @@ else
threads
=
"
$THREADS
"
fi
echo
"using THREADS=
${
threads
}
"
>
&2
if
type
gmake
>
/dev/null 2> /dev/null
then
make
=
"gmake"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment