mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GpuOwl (https://www.mersenneforum.org/forumdisplay.php?f=171)
-   -   Struggling to get gpuOwl working on Ubuntu 20.04 (https://www.mersenneforum.org/showthread.php?t=25671)

makis 2020-06-26 16:45

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

[/CODE]

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 2020-06-26 20:09

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

[QUOTE=makis;549138]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

[/CODE]

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?[/QUOTE]

makis 2020-06-27 07:15

[QUOTE=preda;549153]This was caused by a recent code change that disabled the atomics pragma, should be fixed now in the lastest commit.[/QUOTE]

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! :bow:

Prime95 2020-06-27 16:59

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.


All times are UTC. The time now is 02:41.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.