Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Cannot build OpenCL program for GPU 0 #29

Open
redmouth opened this issue Jun 26, 2017 · 7 comments
Open

Cannot build OpenCL program for GPU 0 #29

redmouth opened this issue Jun 26, 2017 · 7 comments

Comments

@redmouth
Copy link

I got this error with ubuntu 16.04 for gpu rx 470 when run script start_only_eth.bash

Cannot build OpenCL program for GPU 0
./start_only_eth.bash: line 7: 4303 Segmentation fault

Any solution?

@kurakin-oleksandr
Copy link

Try to remove GPU_FORCE_64BIT_PTR parameter

@abargstaedt
Copy link

@rhasce you remove it from the start.bash respectively the start_only_eth.bash or whatever is your bash file named. You can also comment it out:
#export GPU_FORCE_64BIT_PTR=0

@gguman
Copy link

gguman commented Oct 12, 2017

The same problem. All settings I've removed from start.bash file and there left only the line for start the miner: ./ethdcrminer64 -epool... and so on
And after that I always catch the error
img_0128

@leona
Copy link

leona commented Nov 2, 2017

Removing it won't do anything because it has already been set. I had this issue and just set it to 1 rather than 0 and it started working again.

@beattidp
Copy link

Yes, thanks @neoH ...
export GPU_FORCE_64BIT_PTR=1
worked for me also. No more seg fault.

@Lythimus
Copy link

Lythimus commented Dec 9, 2017

Does setting this environment variable reduce performance? And is this more of a kludge than a solution?

I'm running Fedora 27 with mesa-vulkan drivers under kernel 4.13.16-302.fc27.x86_64 , have flashed the BIOS of my card, and am pushing 1250/2235 on my 480 8GB (I think Sapphire, I have a few). I'm expecting 28-31 Mh/s, but am receiving 20.5Mh/s. I assume if we're not using 64bit address spaces that means only 4GB of the card's memory can be accessed, but that prrobably isn't an issue since the DAG is around 2.3GB last I checked. So is it the case that mining instructions aren't running at their full bandwidth? That seems far-fetched to me because most instructions in GPUs are closer to 256-bit, right? I'm not a GPU developer obviously.

@rhlug
Copy link

rhlug commented Feb 1, 2018

Vega still not working on Claymore 10.6 on Ubuntu 16.04 ?

# swapon
NAME      TYPE       SIZE USED PRIO
/dev/sda2 partition 59.7G   0B   -1
#
# export GPU_MAX_ALLOC_PERCENT=100
# export GPU_FORCE_64BIT_PTR=1
# 
# ./ethdcrminer64 -ethi -65536 -etht 100 -etha 2 -epool eth-us.dwarfpool.com:8008 -ewal 0x000000000000 -epsw x -esm 0 -dbg -1 -di 0

????????????????????????????????????????????????????????????????ͻ
?     Claymore's Dual ETH + DCR/SC/LBC/PASC GPU Miner v10.6      ?
????????????????????????????????????????????????????????????????ͼ

ETH: 1 pool is specified
Main Ethereum pool is eth-us.dwarfpool.com:8008
DCR: 0 pool is specified
At least 16 GB of Virtual Memory is required for multi-GPU systems
Make sure you defined GPU_MAX_ALLOC_PERCENT 100
Be careful with overclocking, use default clocks for first tests
Press "s" for current statistics, "0".."9" to turn on/off cards, "r" to reload pools, "e" or "d" to select current pool 
OpenCL initializing...

AMD Cards available: 1 
GPU #0: gfx900 (Device 687f), 8176 MB available, 56 compute units (pci bus 4:0:0)
GPU #0 recognized as Vega
POOL/SOLO version
Cannot build OpenCL program for GPU 0
GPU #0: algorithm ASM
Total cards: 1 
AMD ADL library not found.
ETH: Stratum - connecting to 'eth-us.dwarfpool.com' <144.217.149.131> port 8008
ETH: Stratum - Connected (eth-us.dwarfpool.com:8008)
No pool specified for Decred! Ethereum-only mining mode is enabled
ETHEREUM-ONLY MINING MODE ENABLED (-mode 1)
ETH: eth-proxy stratum mode
Watchdog enabled
Remote management is enabled on port 33330

ETH: Authorized
Setting DAG epoch #166...
Setting DAG epoch #166 for GPU0
Create GPU buffer for GPU0
GPU0, OpenCL error -48 (0) - cannot create DAG on GPU
Quit signal received...
Quit, please wait...
GPU 0 failed

BTW, xmr-stak-amd is working just fine for monero, so I know my amdgpu-pro 17.50 is working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants