mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-08-31, 11:14   #34
moebius
 
moebius's Avatar
 
Jul 2009
Germany

22·32·11 Posts
Default

Quote:
Originally Posted by ATH View Post
I just tested it:

Unfortunately then this error message comes up,

/content/drive/My Drive/gpuowl-master/gpuowl.exe: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /content/drive/My Drive/gpuowl-master/gpuowl.exe)

I tried the following without success, Maybe someone has a binary that works in general, I would be happy with it

!sudo add-apt-repository ppa:ubuntu-toolchain-r/test
!sudo apt-get update
!sudo apt-get install gcc-4.9 g++-4.9
!sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

Last fiddled with by moebius on 2020-08-31 at 11:17
moebius is offline   Reply With Quote
Old 2020-08-31, 12:13   #35
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

1,301 Posts
Default

Quote:
Originally Posted by moebius View Post
2020-08-30 23:04:29 Tesla P100-PCIE-16GB-0 OpenCL compilation in 0.00 s
2020-08-30 23:04:29 Tesla P100-PCIE-16GB-0 Exception gpu_error: INVALID_KERNEL clSetKernelArg(k, pos, sizeof(value), &value) at clwrap.h:77 setArg
2020-08-30 23:04:29 Tesla P100-PCIE-16GB-0 Bye
Sorry I don't really know how to help there. The time of the OpenCL compilation (0.00s) is suspiciously fast. Maybe something didn't go well with the OpenCL compilation, but there is no error reported at that point. Later on, when we try to do something with a kernel, it is not found. I personally don't have experience either with the platform or with the particular GPU.
preda is online now   Reply With Quote
Old 2020-08-31, 12:35   #36
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

296910 Posts
Default

Quote:
Originally Posted by moebius View Post
Unfortunately then this error message comes up,

/content/drive/My Drive/gpuowl-master/gpuowl.exe: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /content/drive/My Drive/gpuowl-master/gpuowl.exe)

I tried the following without success, Maybe someone has a binary that works in general, I would be happy with it

!sudo add-apt-repository ppa:ubuntu-toolchain-r/test
!sudo apt-get update
!sudo apt-get install gcc-4.9 g++-4.9
!sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
Sorry I forgot about those files. On the instance you compiled it on (or compile it again) add a line after compiling:
!cp /usr/lib/x86_64-linux-gnu/libstdc* '/content/drive/My Drive/'

Now those 2 files are in the root of your Google Drive, so each time you run gpuowl without compiling it, you need to add the lines:
%cd '/content/drive/My Drive'
!cp libstdc* /usr/lib/x86_64-linux-gnu/

to copy the files back to that folder before starting gpuowl.
ATH is online now   Reply With Quote
Old 2020-08-31, 16:20   #37
moebius
 
moebius's Avatar
 
Jul 2009
Germany

18C16 Posts
Default

Quote:
Originally Posted by ATH View Post
Sorry I forgot about those files.
THX I build it new, the binary seems to be good now.

/content/drive/My Drive
cp: cannot stat 'libstdc*': No such file or directory

2020-08-31 16:15:20 gpuowl v6.11-380-g79ea0cc
2020-08-31 16:15:20 Note: not found 'config.txt'
2020-08-31 16:15:20 device 0, unique id ''
2020-08-31 16:15:20 Tesla P100-PCIE-16GB-0 104930401 FFT: 5.50M 1K:11:256 (18.19 bpw)
2020-08-31 16:15:20 Tesla P100-PCIE-16GB-0 Expected maximum carry32: 50950000
2020-08-31 16:15:21 Tesla P100-PCIE-16GB-0 OpenCL args "-DEXP=104930401u -DWIDTH=1024u -DSMALL_HEIGHT=256u -DMIDDLE=11u -DPM1=0 -DMM2_CHAIN=1u -DMAX_ACCURACY=1 -DWEIGHT_STEP_MINUS_1=0x1.7ee28e7ec46ep-1 -DIWEIGHT_STEP_MINUS_1=-0x1.b620c8c81195dp-2 -cl-unsafe-math-optimizations -cl-std=CL2.0 -cl-finite-math-only "
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0

2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 OpenCL compilation in 1.77 s
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 104930401 OK 96702000 loaded: blockSize 400, 180c05fad6c9c2cb
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 validating proof residues for power 8
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 Can't open './104930401/proof/409885' (mode 'rb')
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 validating proof residues for power 9
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 Can't open './104930401/proof/204943' (mode 'rb')
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 validating proof residues for power 8
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 Can't open './104930401/proof/409885' (mode 'rb')
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 validating proof residues for power 7
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 Can't open './104930401/proof/819769' (mode 'rb')
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 validating proof residues for power 6
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 Can't open './104930401/proof/1639538' (mode 'rb')
2020-08-31 16:15:23 Tesla P100-PCIE-16GB-0 Proof disabled because of missing checkpoints
2020-08-31 16:15:25 Tesla P100-PCIE-16GB-0 104930401 OK 96702800 92.16%; 1009 us/it; ETA 0d 02:18; aa440da56e62c525 (check 0.56s)
2020-08-31 16:17:04 Tesla P100-PCIE-16GB-0 104930401 OK 96800000 92.25%; 1011 us/it; ETA 0d 02:17; cb6f78c6b55a7c0f (check 0.57s)
2020-08-31 16:17:38 Tesla P100-PCIE-16GB-0 Stopping, please wait..
2020-08-31 16:17:39 Tesla P100-PCIE-16GB-0 104930401 OK 96834400 92.28%; 1011 us/it; ETA 0d 02:16; 9e337d1cc0d9aff1 (check 0.56s)
2020-08-31 16:17:39 Tesla P100-PCIE-16GB-0 Exiting because "stop requested"
2020-08-31 16:17:39 Tesla P100-PCIE-16GB-0 Bye
moebius is offline   Reply With Quote
Old 2020-09-07, 03:57   #38
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

32×227 Posts
Default

So you did get this to work with nVidia? I tried compiling using g++-8 and clang++-9 on Ubuntu 18.04 and the CUDA 11 OpenCL library, but whenever I run it on a Tesla K20 gpu I get the same error, INVALID_KERNEL clSetKernelArg(k, pos, sizeof(value), &value) at clwrap.h:77 setArg. I think I'm about ready to give up.
frmky is online now   Reply With Quote
Old 2020-09-07, 06:34   #39
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

130110 Posts
Default

Quote:
Originally Posted by frmky View Post
So you did get this to work with nVidia? I tried compiling using g++-8 and clang++-9 on Ubuntu 18.04 and the CUDA 11 OpenCL library, but whenever I run it on a Tesla K20 gpu I get the same error, INVALID_KERNEL clSetKernelArg(k, pos, sizeof(value), &value) at clwrap.h:77 setArg. I think I'm about ready to give up.
Moebious' post #37 https://mersenneforum.org/showpost.p...7&postcount=37 indicates that he got it to work, yes. The problem likely was something to do with the generated files "gpuowl-wrap.cpp" or "gpuowl-expanded.cl" that are produced during build (see Makefile) and contain the kernels source. Probably some of these files were empty (no kernel), which explains the instantaneous OpenCL compilation and the subsequent "kernel not found" error.
preda is online now   Reply With Quote
Old 2020-09-07, 08:31   #40
moebius
 
moebius's Avatar
 
Jul 2009
Germany

22×32×11 Posts
Thumbs up

Quote:
Originally Posted by frmky View Post
So you did get this to work with nVidia?
Here is the executable for colab with the libstdc files
Attached Files
File Type: zip gpuowlv6.11-380-g79ea0cc.zip (1.55 MB, 25 views)

Last fiddled with by moebius on 2020-09-07 at 09:06
moebius is offline   Reply With Quote
Old 2020-09-07, 09:12   #41
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

32·227 Posts
Default

Quote:
Originally Posted by moebius View Post
Here is the executable for colab with the libstdc files
Thank you! That works on Ubuntu 18.04.
frmky is online now   Reply With Quote
Old 2020-09-07, 09:26   #42
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

32×227 Posts
Default

Quote:
Originally Posted by preda View Post
The problem likely was something to do with the generated files "gpuowl-wrap.cpp" or "gpuowl-expanded.cl" that are produced during build (see Makefile) and contain the kernels source. Probably some of these files were empty (no kernel), which explains the instantaneous OpenCL compilation and the subsequent "kernel not found" error.
Yes, that was in fact the problem. gpuowl-expanded.cl was in fact empty. I deleted these files and recompiled, and it now works fine. Perhaps a make clean should delete these? Thanks!

And in the double-check range, gpuowl appears faster than CUDALucas on the K20. With a 54M exponent, I'm getting 2.6 ms/iter with gpuowl and 3.2 ms/iter with CUDALucas.

Last fiddled with by frmky on 2020-09-07 at 09:28
frmky is online now   Reply With Quote
Old 2020-09-17, 05:28   #43
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

43·103 Posts
Default

Quote:
Originally Posted by ATH View Post
Are your worktodo.txt lines of this format?:
PRP=<AID>,1,2,<exponent>,-1,75,0


You can also try this notebook which compiles gmp-6.2.0 and gpuowl with gcc9 in /root folder and copies the executable "gpuowl" to the root of the Google Drive, I just tested it:


Code:
import subprocess
import os

from google.colab import drive

if not os.path.exists('/content/drive/My Drive'):
  drive.mount('/content/drive')

%cd ~
!sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
!sudo apt install -y gcc-9
!sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 800
!sudo apt install -y g++-9
!sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 800
!sudo apt-get -y install lzip
!sudo apt-get -y install m4
!sudo apt-get -y install libtool
!sudo apt-get -y install subversion
!sudo apt-get -y install make
!sudo apt-get -y install autoconf
!sudo apt-get -y install automake
!sudo wget https://gmplib.org/download/gmp/gmp-6.2.0.tar.lz
!sudo tar --lzip -xvf gmp-6.2.0.tar.lz
%cd gmp-6.2.0
!./configure ABI=64 CC=gcc CFLAGS="-O3 -m64 -mavx -mavx2" --build=x86_64-pc-linux-gnu --enable-cxx --enable-static --disable-shared
!make
!sudo make install

%cd ..
!git clone https://github.com/preda/gpuowl
%cd gpuowl
!make gpuowl
!cp gpuowl '/content/drive/My Drive/'

!cp /usr/lib/x86_64-linux-gnu/libstdc* '/content/drive/My Drive/'
I get this error....is it familiar?

./gpuowl.exe: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./gpuowl.exe)
petrw1 is offline   Reply With Quote
Old 2020-09-17, 05:49   #44
moebius
 
moebius's Avatar
 
Jul 2009
Germany

22×32×11 Posts
Default

Quote:
Originally Posted by petrw1 View Post
I get this error....is it familiar?
./gpuowl.exe: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./gpuowl.exe)
Read post #36 in this thread.
https://mersenneforum.org/showthread...511#post555511

Last fiddled with by moebius on 2020-09-17 at 05:51
moebius is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
gpuowl tuning M344587487 GpuOwl 14 2018-12-29 08:11
How to interface gpuOwl with PrimeNet preda PrimeNet 2 2017-10-07 21:32
runtime question yoyo YAFU 1 2015-01-08 07:07
runtime error when using redc ltd GMP-ECM 5 2009-10-30 13:09
ECM Runtime and F20 D. B. Staple Factoring 11 2007-12-12 16:52

All times are UTC. The time now is 05:21.

Thu Oct 29 05:21:03 UTC 2020 up 49 days, 2:32, 1 user, load averages: 1.16, 1.42, 1.44

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