mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2020-05-15, 13:01   #1
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

7×13×37 Posts
Default Revisiting msieve GPU with Colab

Code:
<long listing of undefined references>
. . .
tmpxft_00001db1_00000000-5_cudakernel.compute_75.cudafe1.cpp:(.text.startup+0x9): undefined reference to `__cudaRegisterFatBinary'
tmpxft_00001db1_00000000-5_cudakernel.compute_75.cudafe1.cpp:(.text.startup+0x3d): undefined reference to `__cudaRegisterFunction'
tmpxft_00001db1_00000000-5_cudakernel.compute_75.cudafe1.cpp:(.text.startup+0x6b): undefined reference to `__cudaRegisterFunction'
tmpxft_00001db1_00000000-5_cudakernel.compute_75.cudafe1.cpp:(.text.startup+0x95): undefined reference to `__cudaRegisterVar'
tmpxft_00001db1_00000000-5_cudakernel.compute_75.cudafe1.cpp:(.text.startup+0xbd): undefined reference to `__cudaRegisterVar'
tmpxft_00001db1_00000000-5_cudakernel.compute_75.cudafe1.cpp:(.text.startup+0xe5): undefined reference to `__cudaRegisterVar'
tmpxft_00001db1_00000000-5_cudakernel.compute_75.cudafe1.cpp:(.text.startup+0x10e): undefined reference to `__cudaRegisterVar'
collect2: error: ld returned 1 exit status
Makefile:297: recipe for target 'all' failed
make: *** [all] Error 1
I'm lost! (Not an uncommon event. . .)


At the risk of showing even more of my ignorance, Is this an architecture issue and I can simply add some lines of reference to the Makefiles?

Last fiddled with by EdH on 2020-05-15 at 13:08
EdH is offline   Reply With Quote
Old 2020-05-15, 13:39   #2
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

32·347 Posts
Default

Which GPU did you get for your instance? K80, P4, P100, T4?
RichD is offline   Reply With Quote
Old 2020-05-15, 13:41   #3
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

D9F16 Posts
Default

You will need a version of CUDA that supports compute capability 7.5 and a version of Visual Studio that that version of CUDA is compatible with. If you have those, both the Msieve makefile and cub/makefile list out the compute capabilities that they will compile for; you can try adding '75' to the list but I don't know if the generated code will work, or wheither the Msieve binary will select the right PTX at runtime.

You've gone from using Msieve on hardware that's too old to using Msieve on hardware that's too new. The result is probably the same :)
jasonp is offline   Reply With Quote
Old 2020-05-15, 14:58   #4
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

D2716 Posts
Default

Quote:
Originally Posted by RichD View Post
Which GPU did you get for your instance? K80, P4, P100, T4?
This happened with both a K80 and a P100.
Quote:
Originally Posted by jasonp View Post
You will need a version of CUDA that supports compute capability 7.5 and a version of Visual Studio that that version of CUDA is compatible with. If you have those, both the Msieve makefile and cub/makefile list out the compute capabilities that they will compile for; you can try adding '75' to the list but I don't know if the generated code will work, or wheither the Msieve binary will select the right PTX at runtime.

You've gone from using Msieve on hardware that's too old to using Msieve on hardware that's too new. The result is probably the same :)
I'm still playing with old, but the Colab instances give me a playground with the new. I've no familiarity at all with Visual Studio. The Colab CUDA is 10.1 ATM, with 10.0 still instaled. I have succeeded in getting the ECM-GPU running, in the Colab sessions and, in fact, I have been compiling it with my msieve attempts, although I don't know if there's any advantage when compiling msieve with ECM=1. I'm mostly doing it to try to prevent the Colab complaint that I'm not using the GPU, while trying to compile msieve.

Thanks for all the help. Off to play. . .
EdH is offline   Reply With Quote
Old 2020-08-24, 02:22   #5
harrymelling
 
Aug 2020

1 Posts
Default

Download a version of CUDA that supports compute capability 7.5 and a compatible version of Visual Studio.
harrymelling is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Colab question David703 GPU to 72 221 2020-10-07 01:23
Colab results reported as -Anonymous- CADuke GPU to 72 2 2020-03-15 19:56
Alternatives to Google Colab kriesel Cloud Computing 11 2020-01-14 18:45
How I Create a Colab Session That Factors factordb Comps with the GPU branch of GMP-ECM and msieve EdH EdH 0 2019-12-07 19:51
AVX2 Troubles with Colab Instance EdH YAFU 5 2019-11-12 01:49

All times are UTC. The time now is 15:21.

Tue Oct 20 15:21:24 UTC 2020 up 40 days, 12:32, 1 user, load averages: 3.83, 3.47, 3.18

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.