Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ecm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIMMERMANN Paul
ecm
Commits
1bf6eeeb
Commit
1bf6eeeb
authored
1 year ago
by
Phil McLaughlin
Browse files
Options
Downloads
Patches
Plain Diff
Update INSTALL-ecm and INSTALL-gwnum procedures
parent
6706f852
No related branches found
No related tags found
No related merge requests found
Pipeline
#931123
passed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
INSTALL-ecm
+2
-1
2 additions, 1 deletion
INSTALL-ecm
INSTALL-gwnum
+19
-22
19 additions, 22 deletions
INSTALL-gwnum
with
21 additions
and
23 deletions
INSTALL-ecm
+
2
−
1
View file @
1bf6eeeb
...
...
@@ -80,7 +80,8 @@ Instructions to install GMP-ECM:
$ make check
This will run several tests for P+1, P-1, ECM. These tests take a few
minutes. It should normally end with "All ECM tests are ok."
minutes. It should normally end with the "TOTAL" count equal to the
"PASS" count, with the remaining counts all zero.
4) (optional) to tune GMP-ECM, simply type:
...
...
This diff is collapsed.
Click to expand it.
INSTALL-gwnum
+
19
−
22
View file @
1bf6eeeb
...
...
@@ -23,26 +23,22 @@ Users should familiarize themselves with the instructions in
Important note for those using higher-end processors, such as
ones with "Alder Lake" or better chip architecture. Before
building gwnum.a, navigate to the GMP build directory and type:
$ egrep -w '(CC|CFLAGS)' config.log
building gwnum.a, edit the relevant make file for your machine/OS
and append the following to the CFLAGS line:
Copy the flags particular to your processor and return to the gwnum
folder. Edit the make file for your machine (such as "make64" for
linux), and append the copied flags to the "CFLAGS" line which will
be used in the gwnum.a build. Save the file, then execute the build
command. This should ensure that George's FFT code will use the fastest
instructions available on your processor.
-mtune=native -march=native
Save the file, then execute the build command. This should ensure
that George's FFT code will use the fastest instructions available
on your processor.
As an example, using an Intel Core i9-13900K on Ubuntu 22.04, the GMP
processor-specific CFLAGS are "-m64 -mtune=alderlake -march=alderlake".
When appended in gwnum/make64, the CFLAGS line changes from
As an example, for the file gwnum/make64, the CFLAGS line changes from
CFLAGS = -I.. -I../sqlite- <...> -O2
CFLAGS = -I.. -I../sqlite- <...> -O2
to
CFLAGS = -I.. -I../sqlite- <...> -O2 -m
64 -mtune=alderlak
e -march=
alderlak
e
CFLAGS = -I.. -I../sqlite- <...> -O2 -m
tune=nativ
e -march=
nativ
e
2) Configure and build with the gwnum.a library. Navigate back to the ECM build
directory. If you have previously configured and built ECM, execute the
...
...
@@ -76,9 +72,10 @@ Users should familiarize themselves with the instructions in
$ make check
This will run several tests for P+1, P-1, ECM. These tests take a few
minutes. It should normally end with "All ECM tests are ok."
This will run several tests for P+1, P-1, ECM, & ECM with gwnum. These
tests take a few minutes. It should normally end with the "TOTAL" count
equal to the "PASS" count, with the remaining counts all zero.
5) Usage. ECM with gwnum now has full capability to help find factors for integers
of any form. Prior to this release gwnum was limited to processing input
integers of the form "(k*b^n+c)/(factors, if any)". This is still the
...
...
@@ -135,7 +132,7 @@ Step 2 took 525ms
used. The message "Using gwnum_ecmStage1(k, b, n, c, B1, gw_B1done)"
or the message "Using gwnum_ecmStage1_generic(B1, gw_B1done)" (with
parameters replaced by actual values) will be output at the start
of stage 1 whenever the gwnum routines
are
used. If one of these
of stage 1 whenever
one of
the gwnum routines
is
used. If one of these
messages is expected but doesn't appear, repeat the test with "-v"
(verbose) in the command line to discover the reason.
...
...
@@ -154,8 +151,8 @@ Step 2 took 525ms
line invocations which the user may use to control gwnum usage for any
particular test:
"-gwnum" will
force gwnum routines to be used as long as the input
number is greater than 2^350.
"-gwnum" will
override the thresholds in ecm-impl.h and force gwnum
routines to be used as long as the input
number is greater than 2^350.
"-no-gwnum" requires no explanation.
...
...
@@ -194,9 +191,9 @@ In case of a problem, report it to us, with:
- the output of the config.log file
- the versions of GMP-ECM and GM
P
used (first output line), for example:
- the versions of GMP-ECM
, GMP,
and G
WNU
M used (first output line), for example:
GMP-ECM x.y.z [configured with GMP u.v.w, --enable-asm-redc] [P+1]
GMP-ECM x.y.z [configured with GMP u.v.w,
GWNUM r.s,
--enable-asm-redc] [P+1]
- the detailed input enabling us to reproduce the problem, for example:
...
...
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