mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2022-10-04, 16:55   #111
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

2·911 Posts
Default

Quote:
Originally Posted by frmky View Post
That error is referring to line 1062 of gnfs/poly/stage1/stage1_sieve_gpu.c

Code:
CUDA_TRY(cuModuleLoad(&t->gpu_module, "stage1_core.ptx"))
So for some reason it can't find or load stage1_core.ptx. It should be in the same directory as the msieve binary you are running and start with something like below. Here I compiled with CUDA 11.6 for CC 8.0.

Code:
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-30978841
// Cuda compilation tools, release 11.6, V11.6.112
// Based on NVVM 7.0.1
//

.version 7.6
.target sm_80
.address_size 64

        // .globl       sieve_kernel_trans_pp32_r32

.visible .entry sieve_kernel_trans_pp32_r32(
        .param .u64 sieve_kernel_trans_pp32_r32_param_0,
        .param .u32 sieve_kernel_trans_pp32_r32_param_1,
I have the following:

Code:
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-31833905
// Cuda compilation tools, release 11.8, V11.8.89
// Based on NVVM 7.0.1
//

.version 7.8
.target sm_86
.address_size 64

        // .globl       sieve_kernel_trans_pp32_r32

.visible .entry sieve_kernel_trans_pp32_r32(
        .param .u64 sieve_kernel_trans_pp32_r32_param_0,

And just to make sure I'm not missing anything from your instructions, here's the files in the directory:

Code:
wombat@DESKTOP-I5932L1:~/msieve_nfsathome$ ls -l
total 24636
-rw-r--r--  1 wombat wombat   100153 Jul 26 21:44 Changes
-rw-r--r--  1 wombat wombat     9103 Oct  3 23:50 Makefile
-rw-r--r--  1 wombat wombat     9165 Oct  3 23:06 Makefile.old
-rw-r--r--  1 wombat wombat    25290 Jul 26 21:44 Readme
-rw-r--r--  1 wombat wombat    58078 Jul 26 21:44 Readme.nfs
-rw-r--r--  1 wombat wombat     7987 Jul 26 21:44 Readme.qs
drwxr-xr-x  2 wombat wombat     4096 Oct  3 23:50 aprcl
drwxr-xr-x  8 wombat wombat     4096 Jul 26 21:44 build.cuda.vc10
drwxr-xr-x 13 wombat wombat     4096 Jul 26 21:44 build.cuda.vc11
drwxr-xr-x  9 wombat wombat     4096 Jul 26 21:44 build.cuda.vc12
drwxr-xr-x  9 wombat wombat     4096 Jul 26 21:44 build.cuda.vc14
drwxr-xr-x  9 wombat wombat     4096 Jul 26 21:44 build.cuda.vc15
drwxr-xr-x  7 wombat wombat     4096 Jul 26 21:44 build.vc10
drwxr-xr-x  7 wombat wombat     4096 Jul 26 21:44 build.vc11
drwxr-xr-x  7 wombat wombat     4096 Jul 26 21:44 build.vc14
drwxr-xr-x  7 wombat wombat     4096 Jul 26 21:44 build.vc15
-rw-r--r--  1 wombat wombat    13884 Oct  4 00:17 c110test.log
-rw-r--r--  1 wombat wombat        0 Oct  3 22:35 c110test.m
drwxr-xr-x  5 wombat wombat     4096 Oct  3 23:50 common
drwxr-xr-x  3 wombat wombat     4096 Oct  3 23:51 cub
-rw-r--r--  1 wombat wombat    17157 Oct  3 23:47 demo.c
drwxr-xr-x  6 wombat wombat     4096 Oct  3 23:51 gnfs
drwxr-xr-x  2 wombat wombat     4096 Oct  3 23:47 include
-rw-r--r--  1 wombat wombat    32502 Oct  3 23:51 lanczos_kernel.ptx
-rw-r--r--  1 wombat wombat  5110396 Oct  3 23:51 libmsieve.a
drwxr-xr-x  2 wombat wombat     4096 Oct  3 23:51 mpqs
-rwxr-xr-x  1 wombat wombat  2773296 Oct  3 23:51 msieve
-rw-r--r--  1 wombat wombat      272 Sep 11 00:36 msieve.fb
-rwxr-xr-x  1 wombat wombat  1765736 Oct  3 23:05 sort_engine.so
-rwxr-xr-x  1 wombat wombat   928512 Oct  3 23:05 spmv_engine.so
-rw-r--r--  1 wombat wombat   151168 Oct  3 23:51 stage1_core.ptx
-rw-r--r--  1 wombat wombat     5808 Sep 11 00:36 test.log
-rw-r--r--  1 wombat wombat 13927375 Sep 11 00:33 test.m
-rw-r--r--  1 wombat wombat    26170 Sep 11 00:36 test.p
-rw-r--r--  1 wombat wombat      114 Oct  3 22:34 testnum.ini
drwxr-xr-x  4 wombat wombat     4096 Jul 26 21:44 zlib
And the immediate cub subfolder in that directory:

Code:
wombat@DESKTOP-I5932L1:~/msieve_nfsathome/cub$ ls -l
total 2764
-rw-r--r--  1 wombat wombat    3209 Oct  3 23:49 Makefile
-rw-r--r--  1 wombat wombat    3209 Oct  3 23:43 Makefile.old
-rw-r--r--  1 wombat wombat   26726 Oct  3 23:47 agent_unaryspmv_orig.cuh
-rw-r--r--  1 wombat wombat       0 Oct  3 23:51 built
drwxr-xr-x 12 wombat wombat    4096 Sep  9 01:11 cub
-rw-r--r--  1 wombat wombat    4874 Oct  3 23:47 device_unaryspmv.cuh
-rw-r--r--  1 wombat wombat   31362 Oct  3 23:47 dispatch_unaryspmv_orig.cuh
-rw-r--r--  1 wombat wombat    4016 Jul 26 21:44 sort_engine.cu
-rw-r--r--  1 wombat wombat     773 Jul 26 21:44 sort_engine.h
-rwxr-xr-x  1 wombat wombat 1765736 Oct  3 23:51 sort_engine.so
-rw-r--r--  1 wombat wombat    2487 Oct  3 23:47 spmv_engine.cu
-rw-r--r--  1 wombat wombat     721 Jul 26 21:44 spmv_engine.h
-rwxr-xr-x  1 wombat wombat  961280 Oct  3 23:51 spmv_engine.so
wombatman is online now   Reply With Quote
Old 2022-10-04, 20:49   #112
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

114768 Posts
Default

Should the latest git revision still support CUDA 10.1? I had to rebuild a machine and the current git fails. I'm using a restored binary from the old hard drive until I figure things out.
EdH is offline   Reply With Quote
Old 2022-10-04, 21:16   #113
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

248510 Posts
Default

Quote:
Originally Posted by EdH View Post
Should the latest git revision still support CUDA 10.1? I had to rebuild a machine and the current git fails. I'm using a restored binary from the old hard drive until I figure things out.
The branch msieve-lacuda-nfsathome-cuda11.5 should be fine in CUDA 10.1. The branches msieve-lacuda-nfsathome and try_openmp require newer versions of CUDA due to changes in cub and thrust.
frmky is online now   Reply With Quote
Old 2022-10-04, 21:19   #114
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

5·7·71 Posts
Default

Quote:
Originally Posted by wombatman View Post
And just to make sure I'm not missing anything from your instructions, here's the files in the directory:
This all looks fine. I just pushed improved CUDA error reporting to all branches. Please pull the current branch and try again to get more details about what's going wrong.
frmky is online now   Reply With Quote
Old 2022-10-05, 00:03   #115
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·3·821 Posts
Default

Quote:
Originally Posted by frmky View Post
The branch msieve-lacuda-nfsathome-cuda11.5 should be fine in CUDA 10.1. The branches msieve-lacuda-nfsathome and try_openmp require newer versions of CUDA due to changes in cub and thrust.
Compiled perfect! Thanks!
EdH is offline   Reply With Quote
Old 2022-10-05, 01:57   #116
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

2·911 Posts
Default

Quote:
Originally Posted by frmky View Post
This all looks fine. I just pushed improved CUDA error reporting to all branches. Please pull the current branch and try again to get more details about what's going wrong.
Code:
error (line 1062): CUDA_ERROR_UNSUPPORTED_PTX_VERSION, the provided PTX was compiled with an unsupported toolchain.
From googling, this means that the driver is not capable of handling the compiled PTX. I updated to the latest driver and still get the message. I'm trying to reinstall CUDA 11.6 to see if that will work.

Edit: Ok, installing 11.6 compiles and allows it to run, but it goes through Stage 1 (-np1) without actually generating any polynomials at all. Totally blank .m file generated.

Edit 2: Command line I'm using for msieve is:
Code:
./msieve -g 0 -t 8 -s c110test -i testnum.ini -l c110test.log -vv -nf c110test.fb -np1

Last fiddled with by wombatman on 2022-10-05 at 02:40
wombatman is online now   Reply With Quote
Old 2022-10-05, 03:38   #117
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

9B516 Posts
Default

Quote:
Originally Posted by wombatman View Post
Totally blank .m file generated.
I get the same result in Linux, so it's consistently not working. Yay?
Seems the default parameters need tweaking...
frmky is online now   Reply With Quote
Old 2022-10-05, 04:20   #118
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

2·911 Posts
Default

Quote:
Originally Posted by frmky View Post
I get the same result in Linux, so it's consistently not working. Yay?
Seems the default parameters need tweaking...
Well, at least I know I'm not crazy

If there's something I can do to help try and diagnose, I'm happy to do so.
wombatman is online now   Reply With Quote
Old 2022-10-05, 04:57   #119
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

5×7×71 Posts
Default

Lower stage1 norm to 1e17 and you'll probably get a few hits. At 5e16, you'll probably get lots of hits.
Code:
./msieve -g 0 -t 8 -s c110test -i testnum.ini -l c110test.log -v -nf c110test.fb -np1 stage1_norm=1e17
frmky is online now   Reply With Quote
Old 2022-10-05, 05:31   #120
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

2×911 Posts
Default

Quote:
Originally Posted by frmky View Post
Lower stage1 norm to 1e17 and you'll probably get a few hits. At 5e16, you'll probably get lots of hits.
Code:
./msieve -g 0 -t 8 -s c110test -i testnum.ini -l c110test.log -v -nf c110test.fb -np1 stage1_norm=1e17
That did it! Didn't even occur to me that the default norms might be too strict.
wombatman is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perpetual benchmark thread... Xyzzy Hardware 877 2022-09-18 19:58
Non-ECM posts pulled from ECM question thread. chalsall Forum Feedback 43 2019-03-26 16:10
LLR benchmark thread Oddball Riesel Prime Search 5 2010-08-02 00:11
sr5sieve Benchmark thread axn Sierpinski/Riesel Base 5 25 2010-05-28 23:57
You have x posts in this thread, last date masser Forum Feedback 3 2008-06-06 19:34

All times are UTC. The time now is 20:39.


Thu Oct 6 20:39:41 UTC 2022 up 49 days, 18:08, 0 users, load averages: 0.97, 1.09, 1.11

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔