![]() |
|
|
#100 | |
|
"Mr. Meeseeks"
Jan 2012
California, USA
87816 Posts |
Quote:
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 |
|
|
|
|
|
|
#101 |
|
Jul 2009
Tokyo
2×5×61 Posts |
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)
|
|
|
|
|
|
#102 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
216810 Posts |
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)
|
|
|
|
|
|
#103 |
|
Jul 2009
Tokyo
10011000102 Posts |
|
|
|
|
|
|
#104 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
23×271 Posts |
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)
|
|
|
|
|
|
#105 | |
|
Mar 2010
Jyvaskyla, Finland
22·32 Posts |
Quote:
|
|
|
|
|
|
|
#106 |
|
"Victor de Hollander"
Aug 2011
the Netherlands
23×3×72 Posts |
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 :). |
|
|
|
|
|
#107 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
1000011110002 Posts |
:facepalm: Sorry, forgot to link it statically! you don't need the appsdk and catalyst, I'll give you the dll's...
|
|
|
|
|
|
#108 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
23×271 Posts |
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 |
|
|
|
|
|
#109 |
|
"Victor de Hollander"
Aug 2011
the Netherlands
49816 Posts |
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 |
|
|
|
|
|
#110 |
|
"Victor de Hollander"
Aug 2011
the Netherlands
117610 Posts |
And also the test on the much smaller expo (lower GPU load).
|
|
|
|
![]() |
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 |