![]() |
|
|
#1 |
|
Apr 2013
2 Posts |
Is it possible to build msieve with gpu support from the latest svn sources using only cygwin? Meaning, without relying on Visual Studio?
I've tried running polynomial generation using the precompiled 151_gpu, but it only gets a few seconds in before terminating with "Illegal instruction." Everything I've read so far has indicated I need to build my own executable to avoid that issue. Unfortunately, I do not have a copy of VS at my disposal at the moment, however. If the question has been asked before, apologies. I searched and found no likely culprits. |
|
|
|
|
|
#2 |
|
Tribal Bullet
Oct 2004
67258 Posts |
It has been a while since I tried building in cygwin. From the cygwin shell you should be able to do
Code:
make all NO_ZLIB=1 CUDA=1 WIN=1 |
|
|
|
|
|
#3 |
|
Apr 2013
2 Posts |
For clarity:
|
|
|
|
|
|
#4 |
|
Tribal Bullet
Oct 2004
DD516 Posts |
Unfortunately, I'd forgotten that the GPU branch builds CUDA code with Nvidia's NVCC compiler, which on windows requires Microsoft's compiler to be present. You don't need to run a MSVC project, but you do need cl.exe in your path.
MS makes the compiler toolchain for Visual Studio 2008 and 2010 available as a free download. You never have to use it directly, but you need it for CUDA code. In fact you still need it even if you are only building code to run on a GPU, because the compilation process requires Microsoft's preprocessor. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help building GMP for prime95 29.3 | Prime95 | Linux | 16 | 2017-08-29 18:02 |
| Building sr1sieve for RPi | wombatman | Software | 14 | 2017-03-04 16:21 |
| Building msieve under Ubuntu 12.04 | VolMike | Msieve | 9 | 2012-10-14 07:57 |
| Help building new computer | Prime95 | Hardware | 30 | 2009-09-12 05:58 |
| Building gcc 4.4.0 | CRGreathouse | Software | 1 | 2009-07-07 22:25 |