mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-06-26, 16:45   #1
makis
 
makis's Avatar
 
Jun 2020

2×3 Posts
Default Struggling to get gpuOwl working on Ubuntu 20.04

So as the title suggests, I have some problems running GpuOwl on Ubuntu 20.04 . I can compile it just fine but git cloning the repo and running make in the temrinal. The issue comes when running it with a given exponent for a LL test for example

Code:
makis@Radish:~/Repositories/gpuowl$ ./gpuowl -ll 104923699
2020-06-26 19:40:53 gpuowl v6.11-326-g1ee780b
2020-06-26 19:40:53 Note: not found 'config.txt'
2020-06-26 19:40:53 config: -ll 104923699 
2020-06-26 19:40:53 device 0, unique id ''
2020-06-26 19:40:53 GeForce GTX 1080 Ti-0 104923699 FFT: 5.50M 1K:11:256 (18.19 bpw)
2020-06-26 19:40:53 GeForce GTX 1080 Ti-0 Expected maximum carry32: 50850000
2020-06-26 19:40:53 GeForce GTX 1080 Ti-0 OpenCL args "-DEXP=104923699u -DWIDTH=1024u -DSMALL_HEIGHT=256u -DMIDDLE=11u -DPM1=0 -DMM2_CHAIN=1u -DMAX_ACCURACY=1 -DWEIGHT_STEP_MINUS_1=0x1.7f9b2a055b3bfp-1 -DIWEIGHT_STEP_MINUS_1=-0x1.b6998c30f6452p-2  -cl-unsafe-math-optimizations -cl-std=CL2.0 -cl-finite-math-only "
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 ASM compilation failed, retrying compilation using NO_ASM
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 OpenCL compilation error -11 (args -DEXP=104923699u -DWIDTH=1024u -DSMALL_HEIGHT=256u -DMIDDLE=11u -DPM1=0 -DMM2_CHAIN=1u -DMAX_ACCURACY=1 -DWEIGHT_STEP_MINUS_1=0x1.7f9b2a055b3bfp-1 -DIWEIGHT_STEP_MINUS_1=-0x1.b6998c30f6452p-2  -cl-unsafe-math-optimizations -cl-std=CL2.0 -cl-finite-math-only  -DNO_ASM=1)
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 <kernel>:1934:37: error: must specify '#pragma OPENCL EXTENSION cl_khr_int64_base_atomics: enable' before using this atomic operation
if (get_local_id(0) == 0) { atom_add(&out[0], sum); }
                                    ^
<kernel>:2333:9: error: must specify '#pragma OPENCL EXTENSION cl_khr_int64_base_atomics: enable' before using this atomic operation
atom_add((global ulong *) &carryStats[0], carryMax);
        ^

2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 Exception gpu_error: BUILD_PROGRAM_FAILURE clBuildProgram at clwrap.cpp:246 build
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 Bye
I am using a GTX 1080ti with the 440 proprietary nvidia driver. I have installed the nvidia-cuda-toolkit as well as the opencl drivers for ubuntu ocl-icd-opencl-dev. I had gpuOwl running perfectly fine on the same machine running the same os, but the issue here is on a new fresh install of the same system. My guess is that some dependencies/configurations were present in my previous installation that don't exist now. Any ideas?
makis is offline   Reply With Quote
Old 2020-06-26, 20:09   #2
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

27·32 Posts
Default

This was caused by a recent code change that disabled the atomics pragma, should be fixed now in the lastest commit.

Quote:
Originally Posted by makis View Post
So as the title suggests, I have some problems running GpuOwl on Ubuntu 20.04 . I can compile it just fine but git cloning the repo and running make in the temrinal. The issue comes when running it with a given exponent for a LL test for example

Code:
makis@Radish:~/Repositories/gpuowl$ ./gpuowl -ll 104923699
2020-06-26 19:40:53 gpuowl v6.11-326-g1ee780b
2020-06-26 19:40:53 Note: not found 'config.txt'
2020-06-26 19:40:53 config: -ll 104923699 
2020-06-26 19:40:53 device 0, unique id ''
2020-06-26 19:40:53 GeForce GTX 1080 Ti-0 104923699 FFT: 5.50M 1K:11:256 (18.19 bpw)
2020-06-26 19:40:53 GeForce GTX 1080 Ti-0 Expected maximum carry32: 50850000
2020-06-26 19:40:53 GeForce GTX 1080 Ti-0 OpenCL args "-DEXP=104923699u -DWIDTH=1024u -DSMALL_HEIGHT=256u -DMIDDLE=11u -DPM1=0 -DMM2_CHAIN=1u -DMAX_ACCURACY=1 -DWEIGHT_STEP_MINUS_1=0x1.7f9b2a055b3bfp-1 -DIWEIGHT_STEP_MINUS_1=-0x1.b6998c30f6452p-2  -cl-unsafe-math-optimizations -cl-std=CL2.0 -cl-finite-math-only "
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 ASM compilation failed, retrying compilation using NO_ASM
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 OpenCL compilation error -11 (args -DEXP=104923699u -DWIDTH=1024u -DSMALL_HEIGHT=256u -DMIDDLE=11u -DPM1=0 -DMM2_CHAIN=1u -DMAX_ACCURACY=1 -DWEIGHT_STEP_MINUS_1=0x1.7f9b2a055b3bfp-1 -DIWEIGHT_STEP_MINUS_1=-0x1.b6998c30f6452p-2  -cl-unsafe-math-optimizations -cl-std=CL2.0 -cl-finite-math-only  -DNO_ASM=1)
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 <kernel>:1934:37: error: must specify '#pragma OPENCL EXTENSION cl_khr_int64_base_atomics: enable' before using this atomic operation
if (get_local_id(0) == 0) { atom_add(&out[0], sum); }
                                    ^
<kernel>:2333:9: error: must specify '#pragma OPENCL EXTENSION cl_khr_int64_base_atomics: enable' before using this atomic operation
atom_add((global ulong *) &carryStats[0], carryMax);
        ^

2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 Exception gpu_error: BUILD_PROGRAM_FAILURE clBuildProgram at clwrap.cpp:246 build
2020-06-26 19:40:54 GeForce GTX 1080 Ti-0 Bye
I am using a GTX 1080ti with the 440 proprietary nvidia driver. I have installed the nvidia-cuda-toolkit as well as the opencl drivers for ubuntu ocl-icd-opencl-dev. I had gpuOwl running perfectly fine on the same machine running the same os, but the issue here is on a new fresh install of the same system. My guess is that some dependencies/configurations were present in my previous installation that don't exist now. Any ideas?
preda is offline   Reply With Quote
Old 2020-06-27, 07:15   #3
makis
 
makis's Avatar
 
Jun 2020

2·3 Posts
Default

Quote:
Originally Posted by preda View Post
This was caused by a recent code change that disabled the atomics pragma, should be fixed now in the lastest commit.
Thanks a lot it works flawlessly now! Just out of curiosity... What was the change that was causing a problem? Why was it changed? Could you explain it in laymen's terms (I am just curious)? Thanks again for our contributions!
makis is offline   Reply With Quote
Old 2020-06-27, 16:59   #4
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7,013 Posts
Default

I "tidied up" the code by remove pragmas that told the compiler that gpuowl requires 64-bit base and extended atomics. In fact the 64-bit base atomics are used in one place. The AMD OpenCL didn't complain. The nVidia compiler rightly complained.
Prime95 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
gpuOWL for Wagstaff GP2 GpuOwl 22 2020-06-13 16:57
How to set up for running gpuOwl under Ubuntu (and other Linux) with OpenCL ewmayer GpuOwl 1 2020-06-11 00:21
gpuowl tuning M344587487 GpuOwl 14 2018-12-29 08:11
Keeping cuda working over Ubuntu upgrades fivemack Software 9 2016-01-16 16:37

All times are UTC. The time now is 12:48.

Fri Aug 7 12:48:59 UTC 2020 up 21 days, 8:35, 1 user, load averages: 2.70, 2.57, 2.49

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.