mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GPU Computing (https://www.mersenneforum.org/forumdisplay.php?f=92)
-   -   CUDALucas (a.k.a. MaclucasFFTW/CUDA 2.3/CUFFTW) (https://www.mersenneforum.org/showthread.php?t=12576)

ET_ 2015-02-26 18:09

[QUOTE=ET_;396063]I've compiled other CUDA sources before, I suppose I can manage it with a sufficient makefile, thanks.

Luigi[/QUOTE]

bump :smile:

flashjh 2015-02-26 18:18

All the source code including makefiles are on sourceforge

[url]http://sourceforge.net/p/cudalucas/code/HEAD/tree/tags/v2.05.1-final/[/url]

owftheevil 2015-02-27 02:49

ET, just grab the files in the directory flashjh mentioned. Open the Makefile in a text editor. There are some instructions at the top of the file on how to set the two parameters necessary to shape the build for your system.For you,

[CODE]
CUDA = /usr/local/cuda-6.5
[/CODE]is probably appropriate, and on the CUFLAGS line,

[CODE]
CUFLAGS -O$(OptLevel) --generate-code arch=compute_35,code=sm_35 --compiler-options=-Wall -I$(CUINC)
[/CODE]

or

[CODE]
CUFLAGS - -O$(OptLevel) -generate-code arch=compute_50,code=sm_50 --compiler-options=-Wall -I$(CUINC
[/CODE]

Save the file, then run

[CODE]
make
[/CODE]

in the directory where all these files are located.

You won't be able to use arch=compute_52,code=sm_52 unless you have CUDA-7.0 installed.

MacFactor 2015-02-27 05:31

Well, I notice that the libcufft.so files are for CUDA 4.1, not 4.2 -- and the linux libs haven't been updated in two years. Anyone know where to find them ?

After installing the CUDAlib files for CUDALucas, I found that mfaktc now returns an error message, telling me I have the wrong CUDA version (4.1) and that I need the version used in compilation (4.2). What makes this strange is that I included the name of the folder (mfaktc_libs) in the path name in the mfaktc.conf file, and the 4.1 files are in a folder called CUDAlibs. I would have thought that the specified folder would be searched first, but evidently not. Simply by moving the 4.1 files into a subfolder I was able to get mfaktc running again. But it makes me suspect that I need the libcufft.so files for version 4.2. I notice the Windows files are much more recent.

I've been searching Nvidia's site for the .so files, but was working from a Windows computer and couldn't see what was in those linux .run files. Will login again from a Linux Mint system and see if Nvidia has the files I need. I sure don't want to run another CUDA installer, though -- that was a headache.

MacFactor 2015-02-27 05:35

It didn't do anything for me.

I'm trying to get more current libcufft.so files -- hope that will fix it.

owftheevil 2015-02-27 13:27

I'm currently uploading the cuda library files (4.2 - 6.5) to sourceforge. I have hesitated to do this before because the files are big and I have incredibly slow and unreliable internet. Best estimate is a probability of 0.5 that they are up there some time in the next 24 hours.

ET_ 2015-02-27 16:48

1 Attachment(s)
Thank you folks! :bow:

I'm happily testing my new CuLu executable; meanwhile, here are the benchmarks for James.

Luigi

James Heinrich 2015-02-27 17:11

[QUOTE=ET_;396552]meanwhile, here are the benchmarks for James[/QUOTE]Thanks, much appreciated -- I didn't have any Compute 5.2 benchmarks. It's within 3% of predicted so I'm happy.

To everyone else: I still don't have any benchmarks for Compute 5.0, 3.5 or 2.1 under CuLu 2.05, so more benchmarks are welcome, either here or [email]james@mersenne.ca[/email]

ET_ 2015-02-27 18:08

[QUOTE=James Heinrich;396554]Thanks, much appreciated -- I didn't have any Compute 5.2 benchmarks. It's within 3% of predicted so I'm happy.

To everyone else: I still don't have any benchmarks for Compute 5.0, 3.5 or 2.1 under CuLu 2.05, so more benchmarks are welcome, either here or [email]james@mersenne.ca[/email][/QUOTE]

It's compiled as cc5.0 with Cuda 6.5, not yet 5.2 for 7.0.

Luigi

MacFactor 2015-02-27 18:11

Thanks, but it didn't fix my problem. I'm starting to suspect a problem in the PATH setting. The original:
[CODE]
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi[][/CODE]Should I change to:
[CODE]
PATH="$HOME/SHN/CUDALucas:$HOME/SHN:$HOME/bin:$PATH"[/CODE](where SHN is my account, w/admin privileges) ? Would I need to run some update or reboot after making that change ?

I've tried changing all this in /etc/ld.so.conf.d, but it doesn't work, even after running sudo ldconfig:
[CODE]
shn@Core2Duo ~/Desktop/CUDALucas $ ./CUDALucas -v
bash: ./CUDALucas: No such file or directory
shn@Core2Duo ~/Desktop/CUDALucas $ ./CUDALucas-2.05.1-CUDA4.2-linux-x86_64 -v
bash: ./CUDALucas-2.05.1-CUDA4.2-linux-x86_64: No such file or directory[/CODE]Here are the files in that directory:
[CODE]
shn@Core2Duo ~/Desktop/CUDALucas $ ls -lt
total 888
-rwxr-xr-x 1 shn shn 425256 Feb 21 21:57 CUDALucas
-rwxr--r-- 1 shn shn 9092 Feb 21 21:43 CUDALucas.ini
drwxr-xr-x 2 shn shn 4096 Feb 21 14:38 CUDALucas-2.05.1-CUDA4.2-CUDA6.5-linux-x86_64
-rw-r--r-- 1 shn shn 0 Feb 21 11:48 output
-rwxr--r-- 1 shn shn 25 Feb 20 21:58 worktodo.txt
-rwxr-xr-x 1 shn shn 425256 Feb 11 17:27 CUDALucas-2.05.1-CUDA4.2-linux-x86_64
-rw-r--r-- 1 shn shn 35316 Jul 20 2014 CUDALucas README[/CODE]

Mark Rose 2015-02-27 18:15

[QUOTE=James Heinrich;396554]Thanks, much appreciated -- I didn't have any Compute 5.2 benchmarks. It's within 3% of predicted so I'm happy.

To everyone else: I still don't have any benchmarks for Compute 5.0, 3.5 or 2.1 under CuLu 2.05, so more benchmarks are welcome, either here or [email]james@mersenne.ca[/email][/QUOTE]

I'll post benchmarks on two 2.1 cards shortly, a GT520 and a GT430, once the benchmarks have finished running.


All times are UTC. The time now is 23:04.

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