mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-07-12, 01:27   #34
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

7×733 Posts
Default

Can you guys test 5*2^3264650-1? Then post your GPU model and timings. Thank you in advance. Carlos
pinhodecarlos is online now   Reply With Quote
Old 2013-07-12, 17:32   #35
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3×199 Posts
Default

Quote:
Originally Posted by kracker View Post
@Bdot: So I finally got Ubuntu x64 working.. do you think it is easier to compile for windows on windows or on linux(gcc-mingw)?
Well, I always used native compilation and never tried cross-compiling (except that 32-bit mfakto was built on 64-bit too). I may not be the expert you seek.
Bdot is offline   Reply With Quote
Old 2013-07-13, 01:46   #36
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
Can you guys test 5*2^3264650-1? Then post your GPU model and timings. Thank you in advance. Carlos
This program not support 5*2^3264650-1.
msft is offline   Reply With Quote
Old 2013-07-15, 03:28   #37
msft
 
msft's Avatar
 
Jul 2009
Tokyo

26216 Posts
Default

New Version.
Code clean up.
Quote:
$ pwd
/opt/AMDAPP/samples/opencl/cl/0.32
$ tar -xvf 0.32.tar.bz2
0.32/
0.32/clFFTPlans.cpp
0.32/Makefile
0.32/MatrixMulDouble_Kernels.cl
0.32/run.sh
0.32/clFFTPlans.h
0.32/CUDALucas.c
0.32/MatrixMulDouble.hpp
$ cd 0.32/
0.32$ sh -x ./run.sh
+ make
g++ -Wpointer-arith -Wfloat-equal -O3 -I /opt/AMDAPP/include/ -I /opt/clAmdFft-1.10.321/include/ -g3 -ffor-scope -I ../../../../../samples/opencl/SDKUti
l/include -I ../../../../../samples/bolt/BoltUtil/include -I ../../../../../samples/C++Amp/AmpUtil/include -I "/opt/AMDAPP/include" -I ../../../../../inc
lude -o build/debug/x86_64//CUDALucas.o -c CUDALucas.c
g++ -Wpointer-arith -Wfloat-equal -O3 -I /opt/AMDAPP/include/ -I /opt/clAmdFft-1.10.321/include/ -g3 -ffor-scope -I ../../../../../samples/opencl/SDKUti
l/include -I ../../../../../samples/bolt/BoltUtil/include -I ../../../../../samples/C++Amp/AmpUtil/include -I "/opt/AMDAPP/include" -I ../../../../../inc
lude -o build/debug/x86_64//clFFTPlans.o -c clFFTPlans.cpp
g++ -o build/debug/x86_64/CUDALucas build/debug/x86_64//CUDALucas.o build/debug/x86_64//clFFTPlans.o -lpthread -ldl -L/usr/X11R6/lib /opt/clAmdFft-1.10.321/li
b64/libclAmdFft.Runtime.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/CUDALucas ../../../../../samples/opencl/bin/x86_64/CUDALucas
+ mv build/debug/x86_64/CUDALucas ./
+ export LD_LIBRARY_PATH=:/opt/clAmdFft-1.10.321/lib64/:/opt/clAmdFft-1.10.321/lib64/
+ time ./CUDALucas 1398269

start M1398269 fft length = 73728

Iteration 1380000 M( 1398269 )C, 0x6650b95f00196d18, n = 73728, CUDALucas v1.66 err = 0.1108 (0:23 real, 2.3527 ms/iter, ETA 0:23)
Iteration 1390000 M( 1398269 )C, 0x554ae339bfea8fae, n = 73728, CUDALucas v1.66 err = 0.1108 (0:23 real, 2.2749 ms/iter, ETA 0:00)
M( 1398269 )P, n = 73728, CUDALucas v1.66
Attached Files
File Type: bz2 0.32.tar.bz2 (18.5 KB, 318 views)
msft is offline   Reply With Quote
Old 2013-07-15, 19:29   #38
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

217610 Posts
Default

I get the error while compiling CUDALucas.c
"error: _mkdir is not declared"

Probably something I'm doing wrong or missing..
http://imagebin.org/264640
kracker is offline   Reply With Quote
Old 2013-07-17, 23:32   #39
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Quote:
Originally Posted by kracker View Post
I get the error while compiling CUDALucas.c
"error: _mkdir is not declared"

Probably something I'm doing wrong or missing..
http://imagebin.org/264640
http://cygwin.com/cygwin-api/compati...html#std-susv4
cygwin supprt mkdir.

Imagebin hold image only 14 days.
msft is offline   Reply With Quote
Old 2013-07-17, 23:34   #40
msft
 
msft's Avatar
 
Jul 2009
Tokyo

61010 Posts
Default

New version.
Fix bug.
Attached Files
File Type: bz2 0.33.tar.bz2 (18.5 KB, 337 views)
msft is offline   Reply With Quote
Old 2013-07-18, 00:30   #41
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

CUDALucs.c:
Quote:
#define kErrLimit (0.35)
change to
#define kErrLimit (1000)
You can check performance.

HD7750:
Quote:
Iteration 20000 M( 38000000 )C, 0x8f824ba3f8ea30fd, n = 2097152, CUDALucas v1.66 err = 0.5 (2:49 real, 16.9246 ms/iter, ETA 178:30:28)

Iteration 20000 M( 78000000 )C, 0x4f41e11de1d0dbf7, n = 4194304, CUDALucas v1.66 err = 0.5 (5:56 real, 35.6646 ms/iter, ETA 772:26:05)
msft is offline   Reply With Quote
Old 2013-07-18, 02:14   #42
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

27×17 Posts
Default

Ok, this is weird.

line 1422 S
Code:
	{
#ifdef linux
	  mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
	  if (mkdir (folder, mode) != 0)
	    printf
	      ("mkdir: cannot create directory `%s': File exists\n", folder);
#else
	  if (_mkdir (folder) != 0)
	    printf
	      ("mkdir: cannot create directory `%s': File exists\n", folder);
#endif
	}
that doesn't work but cutting it to only the linux-ment code to this
Code:
	{
	  mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
	  if (mkdir (folder, mode) != 0)
	    printf
	      ("mkdir: cannot create directory `%s': File exists\n", folder);
	}
works/compiles. Hmm...
kracker is offline   Reply With Quote
Old 2013-07-18, 10:51   #43
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Hi,
Start up guide.

1) install ubuntu Desktop 64bit 12.04 LTS
2) install amd-driver-installer-catalyst-13-4-linux-x86.x86_64.zip
3) install AMD-APP-SDK-v2.8-lnx64.tgz
4) install clAmdFft-1.10.321.tar.gz
5) install g++
6) install libglu1-mesa-dev
msft is offline   Reply With Quote
Old 2013-07-18, 10:55   #44
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

3×23×149 Posts
Default

let it as in the original, but use a #define linux in front of it and see what it does. Maybe your problem is that you don't have defined it (or definition is not accessible or not included in that file or local environment?)

(edit: obviously I was replying to kracker, but crossposted with msft, btw good work msft!)

Last fiddled with by LaurV on 2013-07-18 at 10:57
LaurV 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 1719 2023-01-16 15:51
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 16:21.


Wed Feb 8 16:21:47 UTC 2023 up 174 days, 13:50, 1 user, load averages: 0.63, 0.76, 0.88

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

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔