mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2013-09-10, 18:15   #100
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

41708 Posts
Default

Quote:
Originally Posted by TeknoHog View Post
I have followed this project with great interest, and I look forward to a usable release. So far, it has been a little hard to piece together all the information necessary for compilation. For example, when trying to compile 0.59, I was left wondering what openclsdkdefs.mk is supposed to be, and where I should find SDKApplication.hpp. I use Linux and I'm not exactly a beginner with these things, but for some reason I feel completely lost here, as if I was missing some essential package (besides AMD APP SDK and clAmdFft, of course).

One reason why I mention this now is that I recently released an automatic work assignment/submission tool for mfakto, and I'd like to extend it for LL testing. Of course, I would try CudaLucas if I had any Nvidia hardware.
This may help.
Also, openclsdkdefs.mk and SDKApplication.hpp is located in the AMD APP SDK. Although, you may want to wait till the switch to clLucas/clFFT is done. Assuming that you have installed AMD APP SDK in the default location on linux, it should be at /opt/AMDAPP/samples/opencl/SDKUtil/include
kracker is offline   Reply With Quote
Old 2013-09-10, 19:14   #101
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Hi,
New Version.
Code:
msft@Fujic:/opt/AMDAPP/samples/opencl/cpp_cl/app$ tar -xvf clLucas.1.0.tar.bz2
clLucas.1.0/
clLucas.1.0/Makefile
clLucas.1.0/timeval.c
clLucas.1.0/run.sh
clLucas.1.0/clLucas.cpp
clLucas.1.0/Kernels.cl
clLucas.1.0/Kernels.hpp
clLucas.1.0/Kernels.cpp
msft@Fujic:/opt/AMDAPP/samples/opencl/cpp_cl/app/clLucas.1.0$ make
mkdir -p depends/x86_64
perl ../../../../../make/fastdep.pl -I. -I../../../../../include  -I../../../../../samples/opencl/SDKUtil/include  -I../../../../../samples/bolt/BoltUtil/include  -I../../../../../samples/C++Amp/AmpUtil/include --obj-suffix='.o' --obj-prefix='build/debug/x86_64//' clLucas.cpp > depends/x86_64/clLucas.depend
mkdir -p build/debug/x86_64/
Building build/debug/x86_64//clLucas.o
g++  -Wpointer-arith   -Wfloat-equal -O3 -Wno-conversion-null -Wno-write-strings -Wno-pointer-arith -I /opt/AMDAPP/include/ -I /opt/clFFT-2.0/include -I /opt/clFFT-2.0/src/include -g3 -ffor-scope   -I  ../../../../../samples/opencl/SDKUtil/include  -I  ../../../../../samples/bolt/BoltUtil/include  -I  ../../../../../samples/C++Amp/AmpUtil/include -I  "/opt/AMDAPP/include" -I  ../../../../../include  -o build/debug/x86_64//clLucas.o -c  clLucas.cpp
Building build/debug/x86_64/clLucas
g++ -o build/debug/x86_64/clLucas build/debug/x86_64//clLucas.o -lpthread -ldl -L/usr/X11R6/lib  -O3 /opt/clFFT-2.0/library/libclFFT.so -lOpenCL  -lSDKUtil  -lOpenCL   -L../../../../../lib/x86_64  -L../../../../../TempSDKUtil/lib/x86_64 -L"/opt/AMDAPP/lib/x86_64"
install -D build/debug/x86_64/clLucas ../../../../../samples/opencl/bin/x86_64/clLucas
for f in Kernels.cl; do \
                install -D $f ../../../../../samples/opencl/bin/x86_64/$f; \
        done
msft@Fujic:/opt/AMDAPP/samples/opencl/cpp_cl/app/clLucas.1.0$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/clFFT-2.0/library/
msft@Fujic:/opt/AMDAPP/samples/opencl/cpp_cl/app/clLucas.1.0$ ../../../../../samples/opencl/bin/x86_64/clLucas 1398269
Platform :Advanced Micro Devices, Inc.
Device 0 : Capeverde


start M1398269 fft length = 73728
Iteration 10000 M( 1398269 )C, 0xa4a6d2f0e34629db, n = 73728, clLucas v1.00 err = 0.09375 (0:18 real, 1.7608 ms/iter, ETA 40:29)
Iteration 20000 M( 1398269 )C, 0x4483211b6f1ce250, n = 73728, clLucas v1.00 err = 0.09375 (0:16 real, 1.6361 ms/iter, ETA 37:21)
Iteration 30000 M( 1398269 )C, 0x32e7a8b19576df92, n = 73728, clLucas v1.00 err = 0.09375 (0:16 real, 1.6365 ms/iter, ETA 37:05)
Attached Files
File Type: bz2 clLucas.1.0.tar.bz2 (16.0 KB, 95 views)
msft is offline   Reply With Quote
Old 2013-09-10, 19:40   #102
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23·271 Posts
Default

A few notes.
Does -aggressive work? it seems turning that on uses a lot of cpu.
Also, might want to consider switching from clamdfft to clfft, (clfft.h)

Attached Thumbnails
Click image for larger version

Name:	clLucas.png
Views:	112
Size:	66.8 KB
ID:	10251  
kracker is offline   Reply With Quote
Old 2013-09-10, 20:59   #103
msft
 
msft's Avatar
 
Jul 2009
Tokyo

11428 Posts
Default

Quote:
Originally Posted by kracker View Post
A few notes.
Does -aggressive work? it seems turning that on uses a lot of cpu.
Also, might want to consider switching from clamdfft to clfft, (clfft.h)

Please check large exponent,like 36666666.
clfft.h is right.My mistake.
msft is offline   Reply With Quote
Old 2013-09-10, 21:42   #104
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23·271 Posts
Default

Ok, so if anyone has a 58xx+,68xx+,77xx+ and want to test out a few things, PM me. (Windows x64, 32 bit if needed)
kracker is offline   Reply With Quote
Old 2013-09-11, 14:18   #105
TeknoHog
 
TeknoHog's Avatar
 
Mar 2010
Jyvaskyla, Finland

22·32 Posts
Default

Quote:
Originally Posted by kracker View Post
This may help.
Also, openclsdkdefs.mk and SDKApplication.hpp is located in the AMD APP SDK. Although, you may want to wait till the switch to clLucas/clFFT is done. Assuming that you have installed AMD APP SDK in the default location on linux, it should be at /opt/AMDAPP/samples/opencl/SDKUtil/include
Thanks! It seems my APP SDK 2.5 is too old; Gentoo doesn't have packages for the newest versions, and I have some software where 2.5 is recommended - I guess I'll have to install by hand.
TeknoHog is offline   Reply With Quote
Old 2013-09-11, 18:27   #106
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

23·3·72 Posts
Default

Kracker,
What are the driver and SDK requirements for the test you send?
Catalyst 13.4 gives me a missing libgcc_s_seh-1.dll error, so I'm downloading Catalyst 13.6Beta2 and APP SDK v2.8.1.0 now and will try again :).
VictordeHolland is offline   Reply With Quote
Old 2013-09-11, 18:45   #107
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23×271 Posts
Default

Quote:
Originally Posted by VictordeHolland View Post
Kracker,
What are the driver and SDK requirements for the test you send?
Catalyst 13.4 gives me a missing libgcc_s_seh-1.dll error, so I'm downloading Catalyst 13.6Beta2 and APP SDK v2.8.1.0 now and will try again :).
:facepalm: Sorry, forgot to link it statically! you don't need the appsdk and catalyst, I'll give you the dll's...
kracker is offline   Reply With Quote
Old 2013-09-11, 18:48   #108
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23·271 Posts
Default

Here they are. also to @LaurV. Sorry again.
https://www.dropbox.com/s/f24mrkl7ai...lLucas_dll.zip

Last fiddled with by kracker on 2013-09-11 at 18:49
kracker is offline   Reply With Quote
Old 2013-09-11, 19:41   #109
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

23·3·72 Posts
Default

Thanks, now it's working!
Windows 7 x64
Catalyst 13.4
AMD HD7950 @800MHz (downclocked it to reference clocks)

Nice GPU load on 36,666,666!
See attached screenshot
Attached Thumbnails
Click image for larger version

Name:	clLucas_x64_test-1.0 36,666,666 HD7950.png
Views:	153
Size:	34.2 KB
ID:	10255  
VictordeHolland is offline   Reply With Quote
Old 2013-09-11, 19:44   #110
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

23×3×72 Posts
Default clLucas_x64_test-1.0 M1,398,269 with HD7950

And also the test on the much smaller expo (lower GPU load).
Attached Thumbnails
Click image for larger version

Name:	clLucas_x64_test-1.0 1,398,269 HD7950.png
Views:	142
Size:	236.8 KB
ID:	10256  
VictordeHolland is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mfakto: an OpenCL program for Mersenne prefactoring Bdot GPU Computing 1676 2021-06-30 21:23
Can't get OpenCL to work on HD7950 Ubuntu 14.04.5 LTS VictordeHolland Linux 4 2018-04-11 13:44
OpenCL accellerated lattice siever pstach Factoring 1 2014-05-23 01:03
OpenCL for FPGAs TObject GPU Computing 2 2013-10-12 21:09
AMD's Graphics Core Next- a reason to accelerate towards OpenCL? Belteshazzar GPU Computing 19 2012-03-07 18:58

All times are UTC. The time now is 07:08.


Mon Aug 2 07:08:17 UTC 2021 up 10 days, 1:37, 0 users, load averages: 2.46, 2.07, 1.67

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