Our new repository is https://github.com/fireice-uk/xmr-stak.
Please use our new miner, the old version is retired and unsupported.
Monero AMD miner
License: GNU General Public License v3.0
Our new repository is https://github.com/fireice-uk/xmr-stak.
Please use our new miner, the old version is retired and unsupported.
Ive tried both cpu and gpu miner in ubuntu. Both have the same problem but works just fine in windows. Im sure im just missing something
$ ./xmr-stak-amd config.txt
[2017-03-20 08:34:55] : Compiling code and initializing GPUs. This will take a while...
[2017-03-20 08:34:55] : Couldn't locate GPU source code file at opencl/cryptonight.cl.
any ideas?
Hi, is there a method to properly configure intensity and worker value based on running hardware ?
As on CPU it's based on L3 Cache size, so on GPU what should be the guide ?
I've got (2) Radeon Rx460 (1gb), (1) Radeon RX470 (4gb), and (1) Radeon RX480 (8gb) in one rig
I've got the config for all (4) set at 8, 512...when I run it says 8 and 256 for all 4 cards. Is that correct? or is that a display bug?
Second question... can you put different values for each card to optimize for that card?
Third question...Whats a recommend increment values?
thanks
jeff
i don't know hot to set my config
os :win7 64
vga:GV RX460 2g
party of my config
/*
/*
index - GPU index number usually starts from 0
/*
in XMR stak nvidia i can use null,
but xmr stak amd can't use
and don't know hot to set
plz gave some help
Thank you very much
Hello,
I compiled xmr-stak-amd but when running i always get some errors. It might be driver bug. Using "ROCm" partialy opensource driver, but opencl should be AMD-APP
[2017-06-13 12:25:15] : Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
error: unable to execute command: Segmentation fault (core dumped)
error: clang frontend command failed due to signal (use -v to see invocation)
config. I did try chanign settings but always same error
"gpu_thread_num" : 1,
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 64, "worksize" : 8, "affine_to_cpu" : true }
"platform_index" : 0,
here is the full log
$ ./bin/xmr-stak-amd config.txt
[2017-06-13 12:25:12] : Compiling code and initializing GPUs. This will take a while...
Profiling is not available
[2017-06-13 12:25:12] : Device 0 work size 8 / 256.
clang version 4.0
Target: amdgcn-amd-amdhsa-opencl
Thread model: posix
InstalledDir: /opt/rocm/opencl/bin/x86_64
[2017-06-13 12:25:15] : Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
warning: argument unused during compilation: '-I .'
error: unable to execute command: Segmentation fault (core dumped)
error: clang frontend command failed due to signal (use -v to see invocation)
note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
/opt/rocm/opencl/bin/x86_64/clang[0x217c00a]
/opt/rocm/opencl/bin/x86_64/clang[0x217a3be]
/opt/rocm/opencl/bin/x86_64/clang[0x217a510]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f19c6640390]
/opt/rocm/opencl/bin/x86_64/clang[0x13d53e4]
/opt/rocm/opencl/bin/x86_64/clang[0x13b88aa]
/opt/rocm/opencl/bin/x86_64/clang[0x1743007]
/opt/rocm/opencl/bin/x86_64/clang[0x20cbcea]
/opt/rocm/opencl/bin/x86_64/clang[0x20cbd83]
/opt/rocm/opencl/bin/x86_64/clang[0x20cc77f]
/opt/rocm/opencl/bin/x86_64/clang[0x598456]
/opt/rocm/opencl/bin/x86_64/clang[0x59a8a3]
/opt/rocm/opencl/bin/x86_64/clang[0x576ceb]
/opt/rocm/opencl/bin/x86_64/clang[0x8ed2ae]
/opt/rocm/opencl/bin/x86_64/clang[0x8c2ad5]
/opt/rocm/opencl/bin/x86_64/clang[0x5720bd]
/opt/rocm/opencl/bin/x86_64/clang[0x56f208]
/opt/rocm/opencl/bin/x86_64/clang[0x52326a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f19c6286830]
/opt/rocm/opencl/bin/x86_64/clang[0x5694c1]
Stack dump:
0. Program arguments: /opt/rocm/opencl/bin/x86_64/clang -cc1 -triple amdgcn-amd-amdhsa-opencl -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name t_19803_47.bc -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu fiji -dwarf-column-info -debugger-tuning=gdb -resource-dir /opt/rocm/opencl/bin/lib/clang/4.0 -O3 -fdebug-compilation-dir /home/gsedej/git/xmr-stak-amd -ferror-limit 19 -fmessage-length 192 -cl-kernel-arg-info -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -mllvm -amdgpu-internalize-symbols -mllvm -amdgpu-early-inline-all -o /tmp/t_19803_47-8cf830.o -x ir /tmp/AMD_19803_32/t_19803_47.bc
1. Code generation
2. Running pass 'Function Pass Manager' on module '/tmp/AMD_19803_32/t_19803_47.bc'.
3. Running pass 'SI Fix SGPR copies' on function '@cn0'
Error: Creating the executable failed: Compiling LLVM IRs to executable
clinfo
$ clinfo
Profiling is not available
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (2410.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Extensions function suffix AMD
Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name gfx803
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2
Driver Version 1.1 (HSA,LC)
Device OpenCL C Version OpenCL C 2.0
Device Type GPU
Device Profile FULL_PROFILE
Max compute units 36
Max clock frequency 1306MHz
Device Partition (core)
Max number of sub-devices 36
Supported partition types none specified
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
Preferred work group size multiple 64
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (n/a)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 64, Little-Endian
Global memory size 8589934592 (8GiB)
Error Correction support No
Max memory allocation 8589934592 (8GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type Read/Write
Global Memory cache size 16384
Global Memory cache line 64 bytes
Image support Yes
Max number of samplers per kernel 26591
Max size for 1D images from buffer 65536 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 65536 (64KiB)
Max constant buffer size 8589934592 (8GiB)
Max number of constant args 8
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
printf() buffer size 1048576 (1024KiB)
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_media_ops cl_amd_media_ops2 cl_khr_subgroups cl_khr_depth_images
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) AMD Accelerated Parallel Processing
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [AMD]
clCreateContext(NULL, ...) [default] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx803
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx803
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.8
ICD loader Profile OpenCL 1.2
NOTE: your OpenCL library declares to support OpenCL 1.2,
but it seems to support up to OpenCL 2.1 too.
How can I run the dev branch on linux intel with beignet im getting this erros:
./xmr-stak-amd
[2017-07-21 12:44:36] : Compiling code and initializing GPUs. This will take a while...
[2017-07-21 12:44:39] : Device 0 work size 8 / 512.
[2017-07-21 12:44:39] : Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
In file included from stringInput.cl:75:
./opencl/wolf-aes.cl:79:14: warning: implicit declaration of function 'amd_bfe' is invalid in C99
./opencl/wolf-aes.cl:74:21: note: expanded from macro 'BYTE'
./opencl/wolf-aes.cl:79:14: error: function with no prototype cannot use the spir_function calling convention
./opencl/wolf-aes.cl:74:21: note: expanded from macro 'BYTE'
In file included from stringInput.cl:76:
./opencl/wolf-skein.cl:33:29: warning: implicit declaration of function 'amd_bitalign' is invalid in C99
./opencl/wolf-skein.cl:33:29: error: function with no prototype cannot use the spir_function calling convention
./opencl/wolf-skein.cl:33:20: error: call to 'as_ulong' is ambiguous
/usr/lib64/beignet/include/ocl_as.h:132:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:159:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:172:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:185:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:197:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:209:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:221:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:233:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:246:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:259:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:272:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:285:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:297:20: note: candidate function
In file included from stringInput.cl:76:
./opencl/wolf-skein.cl:34:14: error: call to 'as_ulong' is ambiguous
/usr/lib64/beignet/include/ocl_as.h:132:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:159:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:172:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:185:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:197:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:209:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:221:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:233:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:246:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:259:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:272:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:285:20: note: candidate function
/usr/lib64/beignet/include/ocl_as.h:297:20: note: candidate function
I have followed your *nix build instruction to build the miner on a fresh copy of Arch Linux.
The dependencies I used
Also installed AMDAPP-SDK and recompiled the miner, this time it throws segmentation fault. I tried to run /opt/AMDAPP/SDK/bin/clinfo but it's always getting segfault. I am still on AMDGPU driver as he AMDGPU-PRO does not support my gpu (HD 7770 1GB)
Any clue on how to fix this? I am running the most recent version.
if i run this by xmr-stak-amd.exe i got this in cmd line: Selected OpelCL device index 1 doesen't exist.
press any key to exit.
i got this in my config.txt:
/*
/*
index - GPU index number usually starts from 0
/*
/*
/*
/*
Both values are in seconds.
don't mine while the connection is lost, so your computer's power usage goes down to idle.
*/
"call_timeout" : 10,
"retry_time" : 10,
"giveup_limit" : 0,
/*
1 - Print intro, connection event, disconnect event
2 - All of level 1, and new job (block) event if the difficulty is different from the last job
3 - All of level 1, and new job (block) event in all cases, result submission event.
4 - All of level 3, and automatic hashrate report printing
*/
"verbose_level" : 3,
/*
This option has no effect if verbose_level is not 4.
*/
"h_print_time" : 60,
/*
/*
*/
"output_file" : "",
/*
/*
This setting will only be needed in 2020's. No need to worry about it now.
*/
"prefer_ipv4" : true,
I'm getting address boundary errors with an HD7870 running amdgpu (not pro) and amdapp-sdk on Arch Linux. Running it with debug flags on gdb gives the following backtrace:
(gdb) bt
#0 0x00000000008c2420 in ?? ()
#1 0x00007fffe1ced546 in ?? () from /opt/AMDAPP/SDK/lib/libamdocl12cl64.so
#2 0x00007fffe1ced85d in ?? () from /opt/AMDAPP/SDK/lib/libamdocl12cl64.so
#3 0x00007fffe1cee1ce in ?? () from /opt/AMDAPP/SDK/lib/libamdocl12cl64.so
#4 0x00007fffe2079805 in ?? () from /opt/AMDAPP/SDK/lib/libamdocl12cl64.so
#5 0x00007fffee716d0e in ?? () from /usr/lib/libamdocl64.so
#6 0x00007fffee6e1b56 in ?? () from /usr/lib/libamdocl64.so
#7 0x00007fffee6f20e4 in ?? () from /usr/lib/libamdocl64.so
#8 0x00007fffee6ddde8 in ?? () from /usr/lib/libamdocl64.so
#9 0x00007fffee71e77e in ?? () from /usr/lib/libamdocl64.so
#10 0x00007fffee71f907 in ?? () from /usr/lib/libamdocl64.so
#11 0x00007fffee71fa96 in ?? () from /usr/lib/libamdocl64.so
#12 0x00007fffee6db87e in ?? () from /usr/lib/libamdocl64.so
#13 0x00007fffee6f6aa7 in ?? () from /usr/lib/libamdocl64.so
#14 0x00007fffee6c525e in clIcdGetPlatformIDsKHR () from /usr/lib/libamdocl64.so
#15 0x00007ffff7bbfbd2 in ?? () from /usr/lib/libOpenCL.so.1
#16 0x00007ffff7bc0e84 in clGetPlatformIDs () from /usr/lib/libOpenCL.so.1
#17 0x000000000046cc16 in InitOpenCL (ctx=0x6bc400, num_gpus=1, platform_idx=0)
at /home/ranieri/xmr-stak-amd/amd_gpu/gpu.c:370
#18 0x0000000000454d19 in minethd::init_gpus ()
at /home/ranieri/xmr-stak-amd/minethd.cpp:168
#19 0x0000000000434b49 in main (argc=1, argv=0x7fffffffe808)
at /home/ranieri/xmr-stak-amd/cli-miner.cpp:103
Unfortunately the top stack is inside amdapp-sdk which is closed and I can't look into. I don't think this issue is because of not using amdgpu pro because it didn't touch the driver yet.
Couldn't locate GPU source code file at opencl/cryptonig ht.cl.
I got this.
Can you give me step to fix it?
Hi, what ip/domain i should allow in firewall?
cant find that in sources....
Receiving "Error CL_INVALID_VALUE when calling clCreateProgramWithSource on the contents of cryptonight.cl"
https://github.com/fireice-uk/xmr-stak-amd/blob/master/amd_gpu/gpu.c#L292
I am not 100% sure what's going on. I tried to compile with a couple tweaks to the gpu.c/h files but most of what I tried was already done or defined in open_cl includes.
This is a 6x gpu system with r9 380s - It works great with wolf's xmr miner. (Compiled on same system as your stak miner.)
If you could perhaps point me in the right direction I will find the fix but this stuff is still a bit beyond me :(
After editing config with the right settings, I'm getting the following error whenever I run xmr-stak-amd.exe on Win64:
Compiling code and initializing GPUs. This will take a while...
Device 0 worksize 8 / 1024
Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Press any key to exit
futurepr0n@futureMedia:~/xmr-stak-amd/bin$ ./xmr-stak-amd ../config.txt
[2017-08-15 23:37:04] : Compiling code and initializing GPUs. This will take a while...
[2017-08-15 23:37:04] : Couldn't locate GPU source code file at opencl/cryptonight.cl.
I only have one gpu, AMD RX 460, here is my config:
/*
* Number of GPUs that you have in your system. Each GPU will get its own CPU thread.
*/
"gpu_thread_num" : 1,
/*
* GPU configuration. You should play around with intensity and worksize as the fastest settings will vary.
* index - GPU index number usually starts from 0
* intensity - Number of parallel GPU threads (nothing to do with CPU threads)
* worksize - Number of local GPU threads (nothing to do with CPU threads)
* affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner.
*/
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
],
/*
* Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel.
*/
"platform_index" : 0,
/*
* TLS Settings
* If you need real security, make sure tls_secure_algo is enabled (otherwise MITM attack can downgrade encryption
* to trivially breakable stuff like DES and MD5), and verify the server's fingerprint through a trusted channel.
*
* use_tls - This option will make us connect using Transport Layer Security.
* tls_secure_algo - Use only secure algorithms. This will make us quit with an error if we can't negotiate a secure algo.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
*/
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
*/
"pool_address" : "pool.supportxmr.com:3333",
"wallet_address" : "46BbNCDgBXGBNKeJfyuHTidUHh9wzf2jgP17HqQbY6x9iC1zgbR2Kxti8yV5E82Qbc9wR1nNjMmQBE2izbyUFfnYSyR6emr",
"pool_password" : "",
/*
* Network timeouts.
* Because of the way this client is written it doesn't need to constantly talk (keep-alive) to the server to make
* sure it is there. We detect a buggy / overloaded server by the call timeout. The default values will be ok for
* nearly all cases. If they aren't the pool has most likely overload issues. Low call timeout values are preferable -
* long timeouts mean that we waste hashes on potentially stale jobs. Connection report will tell you how long the
* server usually takes to process our calls.
*
* call_timeout - How long should we wait for a response from the server before we assume it is dead and drop the connection.
* retry_time - How long should we wait before another connection attempt.
* Both values are in seconds.
* giveup_limit - Limit how many times we try to reconnect to the pool. Zero means no limit. Note that stak miners
* don't mine while the connection is lost, so your computer's power usage goes down to idle.
*/
...
Everything else is stock
Any idea?
I did the best I could on the title. Basically, all of a sudden, the miner will "quit". It looks like its running, but the GPU isn't being used. There is little activity in the radeon settings, and the pool shows no activity for some time. I can close and restart the miner, but eventually it will happen again.
I clean installed Win10 Pro on
CPU Intel Celeron G3930 with IGD 610 enabled
2x RX 560 with 17.4.4 drivers (same as Win8.1 but for Win10)
EDIT: The error bellow it showed when I set "gpu_thread_num" : 1,
and
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 512, "worksize" : 8, "affine_to_cpu" : false }
],
[2017-07-15 20:52:09] : Compiling code and initializing GPUs. This will take a while...
[2017-07-15 20:52:09] : Device 0 work size 8 / 256.
2 warnings and 4 errors generated.
[2017-07-15 20:52:09] : Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
1:16:26: warning: unknown OpenCL extension 'cl_amd_media_ops2' - ignoring
In file included from 1:18:
./opencl/wolf-aes.cl:79:14: error: implicit declaration of function 'amd_bfe' is invalid in OpenCL
./opencl/wolf-aes.cl:74:21: note: expanded from macro 'BYTE'
In file included from 1:19:
./opencl/wolf-skein.cl:33:29: error: implicit declaration of function 'amd_bitalign' is invalid in OpenCL
header_with_defs_gpu.h:288:39: note: expanded from macro 'as_ulong'
In file included from 1:19:
./opencl/wolf-skein.cl:33:20: error: invalid reinterpretation: sizes of 'ulong' (aka 'unsigned long') and 'int' must match
header_with_defs_gpu.h:288:21: note: expanded from macro 'as_ulong'
In file included from 1:19:
./opencl/wolf-skein.cl:34:14: error: invalid reinterpretation: sizes of 'ulong' (aka 'unsigned long') and 'int' must match
header_with_defs_gpu.h:288:21: note: expanded from macro 'as_ulong'
1:328:26: warning: unknown OpenCL extension 'cl_amd_media_ops2' - ignoring
Press any key to exit.
EDIT: With the config.txt bellow in Win10 I get this error:
[2017-07-15 21:46:12] : Compiling code and initializing GPUs. This will take a while...
[2017-07-15 21:46:13] : Selected OpenCL device index 1 doesn't exist.
The config.txt bellow was tested on Win8.1 and it worked fine last night for like 8 hours, today I upgraded to Win10 because I thought it will be better
config.txt
/*
* Number of GPUs that you have in your system. Each GPU will get its own CPU thread.
*/
"gpu_thread_num" : 2,
/*
* GPU configuration. You should play around with intensity and worksize as the fastest settings will vary.
* index - GPU index number usually starts from 0
* intensity - Number of parallel GPU threads (nothing to do with CPU threads)
* worksize - Number of local GPU threads (nothing to do with CPU threads)
* affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner.
*/
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 512, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 1, "intensity" : 512, "worksize" : 8, "affine_to_cpu" : false }
],
/*
* Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel.
*/
"platform_index" : 0,
/*
* TLS Settings
* If you need real security, make sure tls_secure_algo is enabled (otherwise MITM attack can downgrade encryption
* to trivially breakable stuff like DES and MD5), and verify the server's fingerprint through a trusted channel.
*
* use_tls - This option will make us connect using Transport Layer Security.
* tls_secure_algo - Use only secure algorithms. This will make us quit with an error if we can't negotiate a secure algo.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
*/
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
*/
"pool_address" : "pool.supportxmr.com:7777",
"wallet_address" : "45GVWfsDnkDHvihmytFsFebBswnq3K5ZrW2vwDFsGiCpgWtCqdMe4qYQCY8WFQVuAj6G3MmjEyG6ndCEqbgUs5fWMr24R5m",
"pool_password" : "x",
/*
* Network timeouts.
* Because of the way this client is written it doesn't need to constantly talk (keep-alive) to the server to make
* sure it is there. We detect a buggy / overloaded server by the call timeout. The default values will be ok for
* nearly all cases. If they aren't the pool has most likely overload issues. Low call timeout values are preferable -
* long timeouts mean that we waste hashes on potentially stale jobs. Connection report will tell you how long the
* server usually takes to process our calls.
*
* call_timeout - How long should we wait for a response from the server before we assume it is dead and drop the connection.
* retry_time - How long should we wait before another connection attempt.
* Both values are in seconds.
* giveup_limit - Limit how many times we try to reconnect to the pool. Zero means no limit. Note that stak miners
* don't mine while the connection is lost, so your computer's power usage goes down to idle.
*/
"call_timeout" : 10,
"retry_time" : 10,
"giveup_limit" : 0,
/*
* Output control.
* Since most people are used to miners printing all the time, that's what we do by default too. This is suboptimal
* really, since you cannot see errors under pages and pages of text and performance stats. Given that we have internal
* performance monitors, there is very little reason to spew out pages of text instead of concise reports.
* Press 'h' (hashrate), 'r' (results) or 'c' (connection) to print reports.
*
* verbose_level - 0 - Don't print anything.
* 1 - Print intro, connection event, disconnect event
* 2 - All of level 1, and new job (block) event if the difficulty is different from the last job
* 3 - All of level 1, and new job (block) event in all cases, result submission event.
* 4 - All of level 3, and automatic hashrate report printing
*/
"verbose_level" : 3,
/*
* Automatic hashrate report
*
* h_print_time - How often, in seconds, should we print a hashrate report if verbose_level is set to 4.
* This option has no effect if verbose_level is not 4.
*/
"h_print_time" : 60,
/*
* Daemon mode
*
* If you are running the process in the background and you don't need the keyboard reports, set this to true.
* This should solve the hashrate problems on some emulated terminals.
*/
"daemon_mode" : false,
/*
* Output file
*
* output_file - This option will log all output to a file.
*
*/
"output_file" : "",
/*
* Built-in web server
* I like checking my hashrate on my phone. Don't you?
* Keep in mind that you will need to set up port forwarding on your router if you want to access it from
* outside of your home network. Ports lower than 1024 on Linux systems will require root.
*
* httpd_port - Port we should listen on. Default, 0, will switch off the server.
*/
"httpd_port" : 31333,
/*
* prefer_ipv4 - IPv6 preference. If the host is available on both IPv4 and IPv6 net, which one should be choose?
* This setting will only be needed in 2020's. No need to worry about it now.
*/
"prefer_ipv4" : true,
clinfo:
Number of platforms: 2
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.1
Platform Name: Intel(R) OpenCL
Platform Vendor: Intel(R) Corporation
Platform Extensions: cl_intel_dx9_media_sharing cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_d3d11_sharing cl_khr_depth_images cl_khr_dx9_media_sharing cl_khr_fp64 cl_khr_gl_sharing cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_image2d_from_buffer cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_spir
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP (2348.3)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_amd_event_callback cl_amd_offline_devices
Platform Name: Intel(R) OpenCL
Number of devices: 2
Device Type: CL_DEVICE_TYPE_GPU
Vendor ID: 8086h
Max compute units: 12
Max work items dimensions: 3
Max work items[0]: 256
Max work items[1]: 256
Max work items[2]: 256
Max work group size: 256
Preferred vector width char: 16
Preferred vector width short: 8
Preferred vector width int: 4
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 1
Native vector width float: 1
Native vector width double: 1
Max clock frequency: 1050Mhz
Address bits: 64
Max memory allocation: 2147483647
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 128
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 16384
Max image 3D height: 16384
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 1024
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 262144
Global memory size: 3395100672
Constant buffer size: 2147483647
Max number of constant args: 8
Local memory type: Scratchpad
Local memory size: 65536
Max pipe arguments: 16
Max pipe active reservations: 1
Max pipe packet size: 1024
Max global variable size: 65536
Max global variable preferred total size: 2147483647
Max read/write image args: 128
Max on device events: 1024
Queue on device max size: 67108864
Max on device queues: 1
Queue on device preferred size: 131072
SVM capabilities:
Coarse grain buffer: Yes
Fine grain buffer: Yes
Fine grain system: No
Atomics: Yes
Preferred platform atomic alignment: 64
Preferred global atomic alignment: 64
Preferred local atomic alignment: 64
Kernel Preferred work group size multiple: 32
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 83
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: No
Queue on Host properties:
Out-of-Order: Yes
Profiling : Yes
Queue on Device properties:
Out-of-Order: Yes
Profiling : Yes
Platform ID: 00000252AAA83640
Name: Intel(R) HD Graphics 610
Vendor: Intel(R) Corporation
Device OpenCL C version: OpenCL C 2.0
Driver version: 21.20.16.4541
Profile: FULL_PROFILE
Version: OpenCL 2.1
Extensions: cl_intel_accelerator cl_intel_advanced_motion_estimation cl_intel_d3d11_nv12_media_sharing cl_intel_driver_diagnostics cl_intel_dx9_media_sharing cl_intel_motion_estimation cl_intel_packed_yuv cl_intel_required_subgroup_size cl_intel_simultaneous_sharing cl_intel_subgroups cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_depth_images cl_khr_dx9_media_sharing cl_khr_fp16 cl_khr_fp64 cl_khr_gl_depth_images cl_khr_gl_event cl_khr_gl_msaa_sharing cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_gl_sharing cl_khr_icd cl_khr_image2d_from_buffer cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_khr_spir cl_khr_subgroups cl_khr_throttle_hints
Device Type: CL_DEVICE_TYPE_CPU
Vendor ID: 8086h
Max compute units: 2
Max work items dimensions: 3
Max work items[0]: 8192
Max work items[1]: 8192
Max work items[2]: 8192
Max work group size: 8192
Preferred vector width char: 1
Preferred vector width short: 1
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 2
Native vector width float: 4
Native vector width double: 2
Max clock frequency: 2900Mhz
Address bits: 64
Max memory allocation: 2127180800
Image support: Yes
Max number of images read arguments: 480
Max number of images write arguments: 480
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 480
Max size of kernel argument: 3840
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: No
Round to +ve and infinity: No
IEEE754-2008 fused multiply-add: No
Cache type: Read/Write
Cache line size: 64
Cache size: 262144
Global memory size: 8508723200
Constant buffer size: 131072
Max number of constant args: 480
Local memory type: Global
Local memory size: 32768
Max pipe arguments: 16
Max pipe active reservations: 131071
Max pipe packet size: 1024
Max global variable size: 65536
Max global variable preferred total size: 65536
Max read/write image args: 480
Max on device events: 4294967295
Queue on device max size: 4294967295
Max on device queues: 4294967295
Queue on device preferred size: 4294967295
SVM capabilities:
Coarse grain buffer: Yes
Fine grain buffer: Yes
Fine grain system: No
Atomics: Yes
Preferred platform atomic alignment: 64
Preferred global atomic alignment: 64
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 128
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 352
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: Yes
Queue on Host properties:
Out-of-Order: Yes
Profiling : Yes
Queue on Device properties:
Out-of-Order: Yes
Profiling : Yes
Platform ID: 00000252AAA83640
Name: Intel(R) Celeron(R) CPU G3930 @ 2.90GHz
Vendor: Intel(R) Corporation
Device OpenCL C version: OpenCL C 2.0
Driver version: 6.6.0.359
Profile: FULL_PROFILE
Version: OpenCL 2.1 (Build 359)
Extensions: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_dx9_media_sharing cl_intel_dx9_media_sharing cl_khr_d3d11_sharing cl_khr_gl_sharing cl_khr_fp64 cl_khr_image2d_from_buffer
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 3
Device Type: CL_DEVICE_TYPE_GPU
Vendor ID: 1002h
Board name: Radeon RX 560 Series
Device Topology: PCI[ B#3, D#0, F#0 ]
Max compute units: 16
Max work items dimensions: 3
Max work items[0]: 256
Max work items[1]: 256
Max work items[2]: 256
Max work group size: 256
Preferred vector width char: 4
Preferred vector width short: 2
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 4
Native vector width short: 2
Native vector width int: 1
Native vector width long: 1
Native vector width float: 1
Native vector width double: 1
Max clock frequency: 1300Mhz
Address bits: 64
Max memory allocation: 1409286144
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 64
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 1024
Alignment (bits) of base address: 2048
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: No
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 2147483648
Constant buffer size: 1409286144
Max number of constant args: 8
Local memory type: Scratchpad
Local memory size: 32768
Max pipe arguments: 16
Max pipe active reservations: 16
Max pipe packet size: 1409286144
Max global variable size: 1268357376
Max global variable preferred total size: 2147483648
Max read/write image args: 64
Max on device events: 1024
Queue on device max size: 8388608
Max on device queues: 1
Queue on device preferred size: 262144
SVM capabilities:
Coarse grain buffer: Yes
Fine grain buffer: Yes
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 64
Error correction support: 0
Unified memory for Host and Device: 0
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: No
Queue on Host properties:
Out-of-Order: No
Profiling : Yes
Queue on Device properties:
Out-of-Order: Yes
Profiling : Yes
Platform ID: 00007FF8297C0188
Name: Baffin
Vendor: Advanced Micro Devices, Inc.
Device OpenCL C version: OpenCL C 2.0
Driver version: 2348.3
Profile: FULL_PROFILE
Version: OpenCL 2.0 AMD-APP (2348.3)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_liquid_flash
Device Type: CL_DEVICE_TYPE_GPU
Vendor ID: 1002h
Board name: Radeon RX 560 Series
Device Topology: PCI[ B#1, D#0, F#0 ]
Max compute units: 16
Max work items dimensions: 3
Max work items[0]: 256
Max work items[1]: 256
Max work items[2]: 256
Max work group size: 256
Preferred vector width char: 4
Preferred vector width short: 2
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 4
Native vector width short: 2
Native vector width int: 1
Native vector width long: 1
Native vector width float: 1
Native vector width double: 1
Max clock frequency: 1300Mhz
Address bits: 64
Max memory allocation: 1409286144
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 64
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 1024
Alignment (bits) of base address: 2048
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: No
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 2147483648
Constant buffer size: 1409286144
Max number of constant args: 8
Local memory type: Scratchpad
Local memory size: 32768
Max pipe arguments: 16
Max pipe active reservations: 16
Max pipe packet size: 1409286144
Max global variable size: 1268357376
Max global variable preferred total size: 2147483648
Max read/write image args: 64
Max on device events: 1024
Queue on device max size: 8388608
Max on device queues: 1
Queue on device preferred size: 262144
SVM capabilities:
Coarse grain buffer: Yes
Fine grain buffer: Yes
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 64
Error correction support: 0
Unified memory for Host and Device: 0
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: No
Queue on Host properties:
Out-of-Order: No
Profiling : Yes
Queue on Device properties:
Out-of-Order: Yes
Profiling : Yes
Platform ID: 00007FF8297C0188
Name: Baffin
Vendor: Advanced Micro Devices, Inc.
Device OpenCL C version: OpenCL C 2.0
Driver version: 2348.3
Profile: FULL_PROFILE
Version: OpenCL 2.0 AMD-APP (2348.3)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_liquid_flash
Device Type: CL_DEVICE_TYPE_CPU
Vendor ID: 1002h
Board name:
Max compute units: 2
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 1024
Preferred vector width char: 16
Preferred vector width short: 8
Preferred vector width int: 4
Preferred vector width long: 2
Preferred vector width float: 4
Preferred vector width double: 2
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 2
Native vector width float: 4
Native vector width double: 2
Max clock frequency: 2904Mhz
Address bits: 64
Max memory allocation: 2147483648
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 64
Max image 2D width: 8192
Max image 2D height: 8192
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 4096
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 32768
Global memory size: 8508723200
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Global
Local memory size: 32768
Max pipe arguments: 16
Max pipe active reservations: 16
Max pipe packet size: 2147483648
Max global variable size: 1879048192
Max global variable preferred total size: 1879048192
Max read/write image args: 64
Max on device events: 0
Queue on device max size: 0
Max on device queues: 0
Queue on device preferred size: 0
SVM capabilities:
Coarse grain buffer: No
Fine grain buffer: No
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 1
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 352
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: Yes
Queue on Host properties:
Out-of-Order: No
Profiling : Yes
Queue on Device properties:
Out-of-Order: No
Profiling : No
Platform ID: 00007FF8297C0188
Name: Intel(R) Celeron(R) CPU G3930 @ 2.90GHz
Vendor: GenuineIntel
Device OpenCL C version: OpenCL C 1.2
Driver version: 2348.3 (sse2)
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (2348.3)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_spir cl_khr_gl_event
Hello,
I tried to edit the config.txt using textpad and then i entered in my bitcoin address and pool and password.
I doubled clicked the EXE now i get this error:
[2017-04-17 13:58:27] : Compiling code and initializing GPUs. This will take a while.
[2017-04-17 13:58:27] : Selected OpenCL device index 1 doesn't exist.
Press any key to exit.
what am i doing wrong or what is not working?
Hello... I get this error when executing the file. I used windows 10 with rx 470. Thank you
[2017-04-24 06:12:16] : Compiling code and initializing GPUs. This will take a while...
[2017-04-24 06:12:16] : Error CL_DEVICE_NOT_FOUND when calling clGetDeviceIDs for number of devices.
Press any key to exit.
Hi, I got a weird problem. At first, this miner works great on my RX470. But after I flashed VBIOS from ฮnorak to boost the hashrate, the fan speed goes crazy full speed, makes loud noise. But the weird thing is it does not happen on starting of mining, need about 30 mins after starting instead. The hashrate keeps good without any error, just fan speed problem. And it's not caused by overheat. The temp is only 50-60c. The GPU-Z showed the fan speed is 0%. It also happened on XMR claymore miner. But there is no the same issue on ETH claymore miner by same card & bios. And this issue happened on my 3 different rig with different motherboards & different GPU brands. Could you have a look what's the problem? Thank you so much!
When I compile following the guide on my CentOS7, I was met error following:
############## error 1 start#################
[ 5%] Building C object CMakeFiles/xmr-stak-amd.dir/amd_gpu/gpu.c.o
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c: In function โerr_to_strโ:
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:166:7: error: โCL_INVALID_PIPE_SIZEโ undeclared (first use in this function)
case CL_INVALID_PIPE_SIZE:
^~~~~~~~~~~~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:166:7: note: each undeclared identifier is reported only once for each function it appears in
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:168:7: error: โCL_INVALID_DEVICE_QUEUEโ undeclared (first use in this function)
case CL_INVALID_DEVICE_QUEUE:
^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/xmr-stak-amd.dir/amd_gpu/gpu.c.o] Error 1
make[1]: *** [CMakeFiles/xmr-stak-amd.dir/all] Error 2
make: *** [all] Error 2
############## error 1 end#################
It seems that source couldn't found cl.h, so I try to modify amd_gpu/gpu.h line 3 to following:
#include </opt/AMDAPPSDK-3.0/include/CL/cl.h>
When I run the make command, there are full screen error like following:
############## error 2 start#################
[ 5%] Building C object CMakeFiles/xmr-stak-amd.dir/amd_gpu/gpu.c.o
In file included from /root/xmr/xmr-stak-amd/amd_gpu/gpu.h:3:0,
from /root/xmr/xmr-stak-amd/amd_gpu/gpu.c:42:
/opt/AMDAPPSDK-3.0/include/CL/cl.h: In function โclCreateCommandQueueWithPropertiesโ:
/opt/AMDAPPSDK-3.0/include/CL/cl.h:713:80: error: expected declaration specifiers before โCL_API_SUFFIX__VERSION_2_0โ
cl_int * /* errcode_ret /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:716:1: error: storage class specified for parameter โclRetainCommandQueueโ
clRetainCommandQueue(cl_command_queue / command_queue /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:719:1: error: storage class specified for parameter โclReleaseCommandQueueโ
clReleaseCommandQueue(cl_command_queue / command_queue /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:722:1: error: storage class specified for parameter โclGetCommandQueueInfoโ
clGetCommandQueueInfo(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:730:1: error: storage class specified for parameter โclCreateBufferโ
clCreateBuffer(cl_context / context /,
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:737:1: error: storage class specified for parameter โclCreateSubBufferโ
clCreateSubBuffer(cl_mem / buffer /,
^~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:744:1: error: storage class specified for parameter โclCreateImageโ
clCreateImage(cl_context / context /,
^~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:757:60: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_int * / errcode_ret /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:760:1: error: storage class specified for parameter โclRetainMemObjectโ
clRetainMemObject(cl_mem / memobj /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:763:1: error: storage class specified for parameter โclReleaseMemObjectโ
clReleaseMemObject(cl_mem / memobj /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:766:1: error: storage class specified for parameter โclGetSupportedImageFormatsโ
clGetSupportedImageFormats(cl_context / context /,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:774:1: error: storage class specified for parameter โclGetMemObjectInfoโ
clGetMemObjectInfo(cl_mem / memobj /,
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:781:1: error: storage class specified for parameter โclGetImageInfoโ
clGetImageInfo(cl_mem / image /,
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:792:60: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
size_t * / param_value_size_ret /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:796:1: error: storage class specified for parameter โclSetMemObjectDestructorCallbackโ
clSetMemObjectDestructorCallback(cl_mem / memobj /,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:805:46: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_uint / alignment /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:809:48: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
void * / svm_pointer /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:815:81: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_int * / errcode_ret /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:818:1: error: storage class specified for parameter โclRetainSamplerโ
clRetainSampler(cl_sampler / sampler /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:821:1: error: storage class specified for parameter โclReleaseSamplerโ
clReleaseSampler(cl_sampler / sampler /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:824:1: error: storage class specified for parameter โclGetSamplerInfoโ
clGetSamplerInfo(cl_sampler / sampler /,
^~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:832:1: error: storage class specified for parameter โclCreateProgramWithSourceโ
clCreateProgramWithSource(cl_context / context /,
^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:839:1: error: storage class specified for parameter โclCreateProgramWithBinaryโ
clCreateProgramWithBinary(cl_context / context /,
^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:848:1: error: storage class specified for parameter โclCreateProgramWithBuiltInKernelsโ
clCreateProgramWithBuiltInKernels(cl_context / context /,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:855:1: error: storage class specified for parameter โclRetainProgramโ
clRetainProgram(cl_program / program /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:858:1: error: storage class specified for parameter โclReleaseProgramโ
clReleaseProgram(cl_program / program /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:861:1: error: storage class specified for parameter โclBuildProgramโ
clBuildProgram(cl_program / program /,
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:869:1: error: storage class specified for parameter โclCompileProgramโ
clCompileProgram(cl_program / program /,
^~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:880:1: error: storage class specified for parameter โclLinkProgramโ
clLinkProgram(cl_context / context /,
^~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:892:1: error: storage class specified for parameter โclUnloadPlatformCompilerโ
clUnloadPlatformCompiler(cl_platform_id / platform /) CL_API_SUFFIX__VERSION_1_2;
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:895:1: error: storage class specified for parameter โclGetProgramInfoโ
clGetProgramInfo(cl_program / program /,
^~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:902:1: error: storage class specified for parameter โclGetProgramBuildInfoโ
clGetProgramBuildInfo(cl_program / program /,
^~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:911:1: error: storage class specified for parameter โclCreateKernelโ
clCreateKernel(cl_program / program /,
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:916:1: error: storage class specified for parameter โclCreateKernelsInProgramโ
clCreateKernelsInProgram(cl_program / program /,
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:922:1: error: storage class specified for parameter โclRetainKernelโ
clRetainKernel(cl_kernel / kernel /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:925:1: error: storage class specified for parameter โclReleaseKernelโ
clReleaseKernel(cl_kernel / kernel /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:928:1: error: storage class specified for parameter โclSetKernelArgโ
clSetKernelArg(cl_kernel / kernel /,
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:936:56: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
const void * / arg_value /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:942:61: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
const void * / param_value /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:945:1: error: storage class specified for parameter โclGetKernelInfoโ
clGetKernelInfo(cl_kernel / kernel /,
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:952:1: error: storage class specified for parameter โclGetKernelArgInfoโ
clGetKernelArgInfo(cl_kernel / kernel /,
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:960:1: error: storage class specified for parameter โclGetKernelWorkGroupInfoโ
clGetKernelWorkGroupInfo(cl_kernel / kernel /,
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:969:1: error: storage class specified for parameter โclWaitForEventsโ
clWaitForEvents(cl_uint / num_events /,
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:973:1: error: storage class specified for parameter โclGetEventInfoโ
clGetEventInfo(cl_event / event /,
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:980:1: error: storage class specified for parameter โclCreateUserEventโ
clCreateUserEvent(cl_context / context /,
^~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:984:1: error: storage class specified for parameter โclRetainEventโ
clRetainEvent(cl_event / event /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:987:1: error: storage class specified for parameter โclReleaseEventโ
clReleaseEvent(cl_event / event /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:990:1: error: storage class specified for parameter โclSetUserEventStatusโ
clSetUserEventStatus(cl_event / event /,
^~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:994:1: error: storage class specified for parameter โclSetEventCallbackโ
clSetEventCallback( cl_event / event /,
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1001:1: error: storage class specified for parameter โclGetEventProfilingInfoโ
clGetEventProfilingInfo(cl_event / event /,
^~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1009:1: error: storage class specified for parameter โclFlushโ
clFlush(cl_command_queue / command_queue /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1012:1: error: storage class specified for parameter โclFinishโ
clFinish(cl_command_queue / command_queue /) CL_API_SUFFIX__VERSION_1_0;
^~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1016:1: error: storage class specified for parameter โclEnqueueReadBufferโ
clEnqueueReadBuffer(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1027:1: error: storage class specified for parameter โclEnqueueReadBufferRectโ
clEnqueueReadBufferRect(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1043:1: error: storage class specified for parameter โclEnqueueWriteBufferโ
clEnqueueWriteBuffer(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1054:1: error: storage class specified for parameter โclEnqueueWriteBufferRectโ
clEnqueueWriteBufferRect(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1070:1: error: storage class specified for parameter โclEnqueueFillBufferโ
clEnqueueFillBuffer(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1081:1: error: storage class specified for parameter โclEnqueueCopyBufferโ
clEnqueueCopyBuffer(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1092:1: error: storage class specified for parameter โclEnqueueCopyBufferRectโ
clEnqueueCopyBufferRect(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1107:1: error: storage class specified for parameter โclEnqueueReadImageโ
clEnqueueReadImage(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1120:1: error: storage class specified for parameter โclEnqueueWriteImageโ
clEnqueueWriteImage(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1133:1: error: storage class specified for parameter โclEnqueueFillImageโ
clEnqueueFillImage(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1143:1: error: storage class specified for parameter โclEnqueueCopyImageโ
clEnqueueCopyImage(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1154:1: error: storage class specified for parameter โclEnqueueCopyImageToBufferโ
clEnqueueCopyImageToBuffer(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1165:1: error: storage class specified for parameter โclEnqueueCopyBufferToImageโ
clEnqueueCopyBufferToImage(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1176:1: error: storage class specified for parameter โclEnqueueMapBufferโ
clEnqueueMapBuffer(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1188:1: error: storage class specified for parameter โclEnqueueMapImageโ
clEnqueueMapImage(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1202:1: error: storage class specified for parameter โclEnqueueUnmapMemObjectโ
clEnqueueUnmapMemObject(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1210:1: error: storage class specified for parameter โclEnqueueMigrateMemObjectsโ
clEnqueueMigrateMemObjects(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1219:1: error: storage class specified for parameter โclEnqueueNDRangeKernelโ
clEnqueueNDRangeKernel(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1230:1: error: storage class specified for parameter โclEnqueueNativeKernelโ
clEnqueueNativeKernel(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1242:1: error: storage class specified for parameter โclEnqueueMarkerWithWaitListโ
clEnqueueMarkerWithWaitList(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1248:1: error: storage class specified for parameter โclEnqueueBarrierWithWaitListโ
clEnqueueBarrierWithWaitList(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1264:49: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_event * / event /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1274:51: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_event * / event /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1284:52: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_event * / event /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1294:48: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_event * / event /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1301:50: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โCL_API_SUFFIX__VERSION_2_0โ
cl_event * / event /) CL_API_SUFFIX__VERSION_2_0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1312:1: error: storage class specified for parameter โclGetExtensionFunctionAddressForPlatformโ
clGetExtensionFunctionAddressForPlatform(cl_platform_id / platform /,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1318:1: error: storage class specified for parameter โclCreateImage2Dโ
clCreateImage2D(cl_context / context /,
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1328:1: error: storage class specified for parameter โclCreateImage3Dโ
clCreateImage3D(cl_context / context /,
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1340:1: error: storage class specified for parameter โclEnqueueMarkerโ
clEnqueueMarker(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1344:1: error: storage class specified for parameter โclEnqueueWaitForEventsโ
clEnqueueWaitForEvents(cl_command_queue / command_queue /,
^~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1349:1: error: storage class specified for parameter โclEnqueueBarrierโ
clEnqueueBarrier(cl_command_queue / command_queue /) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
^~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1352:1: error: storage class specified for parameter โclUnloadCompilerโ
clUnloadCompiler(void) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
^~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1355:1: error: storage class specified for parameter โclGetExtensionFunctionAddressโ
clGetExtensionFunctionAddress(const char * / func_name /) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1358:21: error: unknown type name โCL_EXT_PREFIX__VERSION_2_0_DEPRECATEDโ
extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_2_0_DEPRECATED cl_command_queue CL_API_CALL
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1359:1: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โclCreateCommandQueueโ
clCreateCommandQueue(cl_context / context /,
^~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1365:21: error: unknown type name โCL_EXT_PREFIX__VERSION_2_0_DEPRECATEDโ
extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_2_0_DEPRECATED cl_sampler CL_API_CALL
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1366:1: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โclCreateSamplerโ
clCreateSampler(cl_context / context /,
^~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1372:21: error: unknown type name โCL_EXT_PREFIX__VERSION_2_0_DEPRECATEDโ
extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_2_0_DEPRECATED cl_int CL_API_CALL
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:1373:1: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โclEnqueueTaskโ
clEnqueueTask(cl_command_queue / command_queue /,
^~~~~~~~~~~~~
In file included from /root/xmr/xmr-stak-amd/amd_gpu/gpu.c:42:0:
/root/xmr/xmr-stak-amd/amd_gpu/gpu.h:31:3: error: storage class specified for parameter โGpuContextโ
} GpuContext;
^~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.h:33:19: error: expected declaration specifiers or โ...โ before โGpuContextโ
size_t InitOpenCL(GpuContext ctx, size_t num_gpus, size_t platform_idx);
^~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.h:34:18: error: expected declaration specifiers or โ...โ before โGpuContextโ
size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint32_t target);
^~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.h:35:18: error: expected declaration specifiers or โ...โ before โGpuContextโ
size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput);
^~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:45:1: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โ{โ token
{
^
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:178:1: error: expected โ=โ, โ,โ, โ;โ, โasmโ or โattributeโ before โ{โ token
{
^
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:204:45: error: expected declaration specifiers or โ...โ before โGpuContextโ
size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, char* source_code)
^~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:356:19: error: expected declaration specifiers or โ...โ before โGpuContextโ
size_t InitOpenCL(GpuContext* ctx, size_t num_gpus, size_t platform_idx)
^~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:453:18: error: expected declaration specifiers or โ...โ before โGpuContextโ
size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint32_t target)
^~~~~~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:582:18: error: expected declaration specifiers or โ...โ before โGpuContextโ
size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput)
^~~~~~~~~~
In file included from /root/xmr/xmr-stak-amd/amd_gpu/gpu.h:3:0,
from /root/xmr/xmr-stak-amd/amd_gpu/gpu.c:42:
/opt/AMDAPPSDK-3.0/include/CL/cl.h:710:1: error: old-style parameter declarations in prototyped function definition
clCreateCommandQueueWithProperties(cl_context /* context /,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:710:1: error: parameter name omitted
/opt/AMDAPPSDK-3.0/include/CL/cl.h:711:36: error: parameter name omitted
cl_device_id / device /,
^~~~~~~~~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:712:36: error: parameter name omitted
const cl_queue_properties * / properties /,
^~~~~
/opt/AMDAPPSDK-3.0/include/CL/cl.h:713:36: error: parameter name omitted
cl_int * / errcode_ret */) CL_API_SUFFIX__VERSION_2_0;
^~~~~~
/root/xmr/xmr-stak-amd/amd_gpu/gpu.c:692:1: error: expected โ{โ at end of input
}
^
make[2]: *** [CMakeFiles/xmr-stak-amd.dir/amd_gpu/gpu.c.o] Error 1
make[1]: *** [CMakeFiles/xmr-stak-amd.dir/all] Error 2
make: *** [all] Error 2
############## error 2 end#################
How can I solve this problem when compile the program?
If config is
"gpu_threads_conf" : [ { "index" : 0, "intensity" : 64, "worksize" : 8, "affine_to_cpu" : false },]
"platform_index" : 1,
then
Error CL_INVALID_WORK_GROUP_SIZE when calling clEnqueueNDRangeKernel for kernel 3.
but hashrate shows.
If config is
"gpu_threads_conf" : [ { "index" : 0, "intensity" : 64, "worksize" : 8, "affine_to_cpu" : false },]
"platform_index" : 0,
then : Error CL_INVALID_DEVICE when calling clCreateCommandQueueWithProperties.
I've tried all AMD drivers this card listed in open cl *.inf files (since 15.12. Crimson it is not)
It takes about 150 h/s on Claymore XMR Miner without any issues, except Claymore's miner is not open sourced.
After testing Master-branch on Ubuntu-17.04 with amdgpu-pro-16.60, where the Miner crashed after about a minute, I upgraded my installation to amdgpu-pro-17.10 and Dev-branch, but then it does not even build:
Miner-01:~/Miners/xmr-stak-amd/git/xmr-stak-amd$ git checkout origin/dev;
M config.txt
HEAD is now at 4a8f0e3... Merge pull request #28 from psychocrypt/topic-versionFile
sysadm@gpu-miner-01:~/Miners/xmr-stak-amd/git/xmr-stak-amd$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sysadm/Miners/xmr-stak-amd/git/xmr-stak-amd
Miner-01:~/Miners/xmr-stak-amd/git/xmr-stak-amd$ make clean
Miner-01:~/Miners/xmr-stak-amd/git/xmr-stak-amd$ make
[ 5%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_blake256.c.o
[ 10%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_groestl.c.o
[ 15%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_jh.c.o
[ 21%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_keccak.c.o
[ 26%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_skein.c.o
[ 31%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/soft_aes.c.o
[ 36%] Building C object CMakeFiles/xmr-stak-c.dir/amd_gpu/gpu.c.o
/home/sysadm/Miners/xmr-stak-amd/git/xmr-stak-amd/amd_gpu/gpu.c: In function โXMRRunJobโ:
/home/sysadm/Miners/xmr-stak-amd/git/xmr-stak-amd/amd_gpu/gpu.c:680:31: warning: implicit declaration of function โceilโ [-Wimplicit-function-declaration]
BranchNonces[i] = ((size_t)ceil( (double)BranchNonces[i] / (double)w_size) ) * w_size;
^~~~
/home/sysadm/Miners/xmr-stak-amd/git/xmr-stak-amd/amd_gpu/gpu.c:680:31: warning: incompatible implicit declaration of built-in function โceilโ
/home/sysadm/Miners/xmr-stak-amd/git/xmr-stak-amd/amd_gpu/gpu.c:680:31: note: include โ<math.h>โ or provide a declaration of โceilโ
[ 42%] Linking C static library libxmr-stak-c.a
[ 42%] Built target xmr-stak-c
[ 47%] Building CXX object CMakeFiles/xmr-stak-amd.dir/cli-miner.cpp.o
[ 52%] Building CXX object CMakeFiles/xmr-stak-amd.dir/console.cpp.o
[ 57%] Building CXX object CMakeFiles/xmr-stak-amd.dir/executor.cpp.o
[ 63%] Building CXX object CMakeFiles/xmr-stak-amd.dir/httpd.cpp.o
[ 68%] Building CXX object CMakeFiles/xmr-stak-amd.dir/jconf.cpp.o
[ 73%] Building CXX object CMakeFiles/xmr-stak-amd.dir/jpsock.cpp.o
[ 78%] Building CXX object CMakeFiles/xmr-stak-amd.dir/minethd.cpp.o
[ 84%] Building CXX object CMakeFiles/xmr-stak-amd.dir/socket.cpp.o
[ 89%] Building CXX object CMakeFiles/xmr-stak-amd.dir/webdesign.cpp.o
[ 94%] Building CXX object CMakeFiles/xmr-stak-amd.dir/crypto/cryptonight_common.cpp.o
[100%] Linking CXX executable bin/xmr-stak-amd
libxmr-stak-c.a(gpu.c.o): In function `InitOpenCLGpu':
gpu.c:(.text+0x4f4): undefined reference to `clGetDeviceInfo'
gpu.c:(.text+0x56a): undefined reference to `clCreateCommandQueueWithProperties'
gpu.c:(.text+0x5d3): undefined reference to `clCreateBuffer'
gpu.c:(.text+0xa09): undefined reference to `clCreateBuffer'
gpu.c:(.text+0xa5b): undefined reference to `clCreateBuffer'
gpu.c:(.text+0xaa4): undefined reference to `clCreateBuffer'
gpu.c:(.text+0xae5): undefined reference to `clCreateBuffer'
libxmr-stak-c.a(gpu.c.o):gpu.c:(.text+0xb2b): more undefined references to `clCreateBuffer' follow
libxmr-stak-c.a(gpu.c.o): In function `InitOpenCLGpu':
gpu.c:(.text+0xbf2): undefined reference to `clCreateProgramWithSource'
gpu.c:(.text+0xc6a): undefined reference to `clBuildProgram'
gpu.c:(.text+0xc93): undefined reference to `clGetProgramBuildInfo'
gpu.c:(.text+0xd21): undefined reference to `clCreateKernel'
gpu.c:(.text+0xd82): undefined reference to `clGetProgramBuildInfo'
gpu.c:(.text+0xdf6): undefined reference to `clGetProgramBuildInfo'
libxmr-stak-c.a(gpu.c.o): In function `InitOpenCL':
gpu.c:(.text+0xea5): undefined reference to `clGetPlatformIDs'
gpu.c:(.text+0xedb): undefined reference to `clGetPlatformIDs'
gpu.c:(.text+0xf75): undefined reference to `clGetDeviceIDs'
gpu.c:(.text+0xff6): undefined reference to `clGetDeviceIDs'
gpu.c:(.text+0x10c1): undefined reference to `clCreateContext'
gpu.c:(.text+0x1182): undefined reference to `clGetDeviceIDs'
libxmr-stak-c.a(gpu.c.o): In function `XMRSetJob':
gpu.c:(.text+0x1243): undefined reference to `clEnqueueWriteBuffer'
gpu.c:(.text+0x12b0): undefined reference to `clSetKernelArg'
gpu.c:(.text+0x15d6): undefined reference to `clSetKernelArg'
gpu.c:(.text+0x162e): undefined reference to `clSetKernelArg'
gpu.c:(.text+0x1675): undefined reference to `clSetKernelArg'
gpu.c:(.text+0x16b1): undefined reference to `clSetKernelArg'
libxmr-stak-c.a(gpu.c.o):gpu.c:(.text+0x16ed): more undefined references to `clSetKernelArg' follow
libxmr-stak-c.a(gpu.c.o): In function `XMRRunJob':
gpu.c:(.text+0x19e5): undefined reference to `clEnqueueWriteBuffer'
gpu.c:(.text+0x1a33): undefined reference to `clEnqueueWriteBuffer'
gpu.c:(.text+0x1a9c): undefined reference to `clFinish'
gpu.c:(.text+0x1afc): undefined reference to `clEnqueueNDRangeKernel'
gpu.c:(.text+0x1b64): undefined reference to `clEnqueueNDRangeKernel'
gpu.c:(.text+0x1bc9): undefined reference to `clEnqueueNDRangeKernel'
gpu.c:(.text+0x1c16): undefined reference to `clEnqueueReadBuffer'
gpu.c:(.text+0x1c52): undefined reference to `clEnqueueReadBuffer'
gpu.c:(.text+0x1c8e): undefined reference to `clEnqueueReadBuffer'
gpu.c:(.text+0x1cca): undefined reference to `clEnqueueReadBuffer'
gpu.c:(.text+0x1ce2): undefined reference to `clFinish'
gpu.c:(.text+0x1d1c): undefined reference to `clSetKernelArg'
gpu.c:(.text+0x1daa): undefined reference to `clEnqueueNDRangeKernel'
gpu.c:(.text+0x1df0): undefined reference to `clEnqueueReadBuffer'
gpu.c:(.text+0x1e05): undefined reference to `clFinish'
collect2: error: ld returned 1 exit status
CMakeFiles/xmr-stak-amd.dir/build.make:333: recipe for target 'bin/xmr-stak-amd' failed
make[2]: *** [bin/xmr-stak-amd] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/xmr-stak-amd.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-amd.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
CLinfo:
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP (2348.3)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 2
Device Type: CL_DEVICE_TYPE_GPU
Vendor ID: 1002h
Board name: AMD Radeon (TM) RX 480 Graphics
Device Topology: PCI[ B#1, D#0, F#0 ]
Max compute units: 36
Max work items dimensions: 3
Max work items[0]: 256
Max work items[1]: 256
Max work items[2]: 256
Max work group size: 256
Preferred vector width char: 4
Preferred vector width short: 2
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 4
Native vector width short: 2
Native vector width int: 1
Native vector width long: 1
Native vector width float: 1
Native vector width double: 1
Max clock frequency: 1342Mhz
Address bits: 64
Max memory allocation: 4244635648
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 8
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 1024
Alignment (bits) of base address: 2048
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: No
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 8566132736
Constant buffer size: 4244635648
Max number of constant args: 8
Local memory type: Scratchpad
Local memory size: 32768
Max pipe arguments: 0
Max pipe active reservations: 0
Max pipe packet size: 0
Max global variable size: 0
Max global variable preferred total size: 0
Max read/write image args: 0
Max on device events: 0
Queue on device max size: 0
Max on device queues: 0
Queue on device preferred size: 0
SVM capabilities:
Coarse grain buffer: No
Fine grain buffer: No
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 64
Error correction support: 0
Unified memory for Host and Device: 0
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: No
Queue on Host properties:
Out-of-Order: No
Profiling : Yes
Queue on Device properties:
Out-of-Order: No
Profiling : No
Platform ID: 0x7f08821f0e98
Name: Ellesmere
Vendor: Advanced Micro Devices, Inc.
Device OpenCL C version: OpenCL C 1.2
Driver version: 2348.3
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (2348.3)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_event
Device Type: CL_DEVICE_TYPE_CPU
Vendor ID: 1002h
Board name:
Max compute units: 2
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 1024
Preferred vector width char: 16
Preferred vector width short: 8
Preferred vector width int: 4
Preferred vector width long: 2
Preferred vector width float: 4
Preferred vector width double: 2
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 2
Native vector width float: 4
Native vector width double: 2
Max clock frequency: 3000Mhz
Address bits: 64
Max memory allocation: 2147483648
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 64
Max image 2D width: 8192
Max image 2D height: 8192
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 4096
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 8369180672
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Global
Local memory size: 32768
Max pipe arguments: 16
Max pipe active reservations: 16
Max pipe packet size: 2147483648
Max global variable size: 1879048192
Max global variable preferred total size: 1879048192
Max read/write image args: 64
Max on device events: 0
Queue on device max size: 0
Max on device queues: 0
Queue on device preferred size: 0
SVM capabilities:
Coarse grain buffer: No
Fine grain buffer: No
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 1
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: Yes
Queue on Host properties:
Out-of-Order: No
Profiling : Yes
Queue on Device properties:
Out-of-Order: No
Profiling : No
Platform ID: 0x7f08821f0e98
Name: Intel(R) Pentium(R) D CPU 3.00GHz
Vendor: GenuineIntel
Device OpenCL C version: OpenCL C 1.2
Driver version: 2348.3 (sse2)
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (2348.3)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_event
Any suggestions?
Hello,
$1
I installed the AMDpro driver following the link you posted and their instructions.
I cloned and compiled your program.
I had to copy the config.txt
from the source directory into the bin directory because it wasn't created.
Here's my config:
/*
* Number of GPUs that you have in your system. Each GPU will get its own CPU thread.
*/
"gpu_thread_num" : 1,
/*
* GPU configuration. You should play around with intensity and worksize as the fastest settings will vary.
* index - GPU index number usually starts from 0
* intensity - Number of parallel GPU threads (nothing to do with CPU threads)
* worksize - Number of local GPU threads (nothing to do with CPU threads)
* affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner.
*/
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
],
/*
* Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel.
*/
"platform_index" : 0,
/*
* TLS Settings
* If you need real security, make sure tls_secure_algo is enabled (otherwise MITM attack can downgrade encryption
* to trivially breakable stuff like DES and MD5), and verify the server's fingerprint through a trusted channel.
*
* use_tls - This option will make us connect using Transport Layer Security.
* tls_secure_algo - Use only secure algorithms. This will make us quit with an error if we can't negotiate a secure algo.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
*/
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
*/
"pool_address" : "mine.xmrpool.net:5555",
"wallet_address" : "HIDDEN",
"pool_password" : "HIDDEN",
When I go to run the program, I get the error:
[2017-06-16 17:34:45] : Compiling code and initializing GPUs. This will take a while...
[2017-06-16 17:34:45] : Error CL_DEVICE_NOT_FOUND when calling clGetDeviceIDs for number of devices.
I've read through other people's issues and googled the errors.
I've tried some of the things people suggested but didn't get a fix.
Out of curiosity, I ran clinfo
(had to apt-get it first) and got this:
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (2348.3)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Extensions function suffix AMD
Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name Intel(R) Core(TM) i5-3330 CPU @ 3.00GHz
Device Vendor GenuineIntel
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2348.3)
Driver Version 2348.3 (sse2,avx)
Device OpenCL C Version OpenCL C 1.2
Device Type CPU
Device Profile FULL_PROFILE
Device Board Name (AMD)
Device Topology (AMD) (n/a)
Max compute units 4
Max clock frequency 1601MHz
Device Partition (core, cl_ext_device_fission)
Max number of sub-devices 4
Supported partition types equally, by counts, by affinity domain
Supported affinity domains L3 cache, L2 cache, L1 cache, next partitionable
Supported partition types (ext) equally, by counts, by affinity domain
Supported affinity domains (ext) L3 cache, L2 cache, L1 cache, next fissionable
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 1024
Preferred work group size multiple 1
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 4 / 4 (n/a)
float 8 / 8
double 4 / 4 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 64, Little-Endian
Global memory size 16753750016 (15.6GiB)
Error Correction support No
Max memory allocation 4188437504 (3.901GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type Read/Write
Global Memory cache size 32768
Global Memory cache line 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 65536 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 8192x8192 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 64
Local memory type Global
Local memory size 32768 (32KiB)
Max constant buffer size 65536 (64KiB)
Max number of constant args 8
Max size of kernel argument 4096 (4KiB)
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1497648123660783719ns (Fri Jun 16 17:22:03 2017)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
SPIR versions 1.2
printf() buffer size 65536 (64KiB)
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_event
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform
From the looks of it, my CPU has an integrated GPU.
I attempted to go to the BIOS and disable it but there was no such option. Instead I opted to change the "primary display device" to PCIE and hoped that would work. It didn't.
So it seems that for whatever reason, my Ubuntu has decided that the Intel GPU is the first and only platform to be used.
I ran the lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
command and got:
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barts XT [Radeon HD 6870] [1002:6738] (prog-if 00 [VGA controller])
So the card is there and the OS sees it, but for whatever reason it's not using it accordingly.
What should I do? I'm currently using your CPU miner on some other servers and it's working just fine.
$2
Well, sort of fine actually... I might as well post it here 'cause hopefully you'll be reading this anyway.
So I have an HP DL320G6 with a Intel Xeon E5630, running ESXI and in Ubuntu Server 1604.2 in a VM.
The E5630 has 8 Logical Processors so I set the VM to have 8 cores. When setting up the config.txt
, I created 8 CPU_AFFINITY related entries and then ran the program (after doing the page pool size, etc - which actually still gives me errors btw). I only got like 120hash or something like that.
I went to the config.txt
and changed the 8 CPU_AFFINITYs into 6 of them; and then ran.
My hash then went to 220hash.
How come using 6 gets a better has than 220?
(This is only the first part of this question)
With all that said, I have an HP ML370 with Dual-Proc Intel Xeon L5630 (2 CPUs). This means I have 16 Logical Processors instead of 8 (as noted by ESXI). I changed the VM's CPUs from 8 to 16.
I did all the same setup and config as mentioned prior; except I changed the CPU_AFFINITY from 6 CPUs to 16 CPU entries.
My hash was only like 160?
I changed my VM's CPUs to 8, and then used the same config as my DL320G6.
Now I get 220ish hash.
What is going on? How come it's not making use of the 10 extra cores available to it?
What should I do? Is there any other information I can provide you to help possibly?
P.S. - If you'd like me to move the second part of this question to the issues section of your CPU miner; I can.
NOTE
CPU_AFFINITY = { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
I have pasted the config file into a JSON code versifier and it is telling me that the error is in the comments.
Error: Parse error on line 1:
/* * Number of GPU
^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
from JSON file:
/*
i get this when i start it up: http://i.imgur.com/QyBalyk.png http://i.imgur.com/pGiGU9Y.png
here is my config file: http://pastebin.com/0qcG5gwy
i have the required DLLs installed as well. running win 7 64bit.
I can seem to get the software to run heres the error
[2017-03-20 19:21:06] : Compiling code and initializing GPUs. This will take a while...
[2017-03-20 19:21:07] : Device 0 work size 8 / 256.
[2017-03-20 19:21:07] : Error CL_INVALID_BUFFER_SIZE when calling clCreateBuffer to create hash scratchpads buffer.
Press any key to exit.
and my config.txt
http://pastebin.com/90AnK9TK
Hello,
I get "segmentation fault (core dumped)" when starting xmr-stak-amd.
Is there anyone who was able to use a (msi) Radeon RX480 card on Arch Linux?
Thanks
cmake .
-- The C compiler identification is GNU 7.1.1
-- The CXX compiler identification is GNU 7.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /opt/AMDAPP/SDK/lib/libOpenCL.so (found version "2.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/libssl.so (found version "1.1.0f")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/source/xmr-stak-amd
./xmr-stak-amd
Compiling code and initializing GPUs. This will take a while...
Device 0 work size 256 / 256.
Segmentation fault (core dumped)
Hello!
I can't compile on Mac with this error:
In file included from /Users/username/xmr-stak-amd/amd_gpu/gpu.c:43:
/Users/username/xmr-stak-amd/amd_gpu/gpu.h:3:10: fatal error: 'CL/cl.h' file not found
#include <CL/cl.h>
Hello,
Firstly thank you for your shared code and build to allow us mining on AMD platforms...
I'm experiencing an issue that i did not understand and did not see on others topics as the hash mining is displaying zero every time on my side.
the display of hash result stays at zero, connection is here but after a certain time (variable) the code did not reply but not crash). No gpu activity monitored and i have no idea if GPU threads are still working.
ex here when the process simply hangs:
[2017-06-11 10:08:01] : Starting GPU thread, no affinity.
[2017-06-11 10:08:01] : Connecting to pool xmr.crypto-pool.fr:3333 ...
[2017-06-11 10:08:01] : Connected. Logging in...
[2017-06-11 10:08:01] : Difficulty changed. Now: 18000.
[2017-06-11 10:08:01] : New block detected.
[2017-06-11 10:08:30] : New block detected.
The IGP is coming with a cheap C-70 APU but i'm starting the mining here with this device for educational purposes...(no benefit with this hw config).
i ran Win8.1 x86_64 with last catalyst driver (legacy 15.x) and AMD app sdk rev3.0 (x86_64).
If needed i can start to try building using gcc/mingw64 with debug options.
Attached the clinfo output.
Pastebin link
config.txt parameters used:
"gpu_thread_num" : 1,
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 100, "worksize" : 1, "affine_to_cpu" : false },
],
"platform_index" : 0,
"use_tls" : false,
"tls_secure_algo" : false,
"tls_fingerprint" : "",
"call_timeout" : 10,
"retry_time" : 10,
"giveup_limit" : 0,
for my configuration, what could be the intensity/worksize parameter to use as my gpu is using 256MB of system RAM? I entered 100/1 as 100x1x2 (2MB) is lower than 256MB. Is it correct?
Thank you.
Not able to run compiled xmr-stak-amd in Linux Ubuntu 16.04.2
When i try to run it i get
[2017-07-26 22:05:47] : Compiling code and initializing GPUs. This will take a while...
[2017-07-26 22:05:47] : Device 0 work size 1 / 256.
[2017-07-26 22:05:47] : Error CL_OUT_OF_HOST_MEMORY when calling clCreateCommandQueueWithProperties.
i set Intensity and WorkSize to 1 so i can make sure it's not a memory problem.
clinfo output
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (2348.3)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Extensions function suffix AMD
Platform Name AMD Accelerated Parallel Processing
Number of devices 2
Device Name Capeverde
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2348.3)
Driver Version 2348.3
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Profile FULL_PROFILE
Device Board Name (AMD) AMD Radeon R7 Series / HD 9000 Series
Device Topology (AMD) PCI-E, 01:00.0
Max compute units 4
SIMD per compute unit (AMD) 4
SIMD width (AMD) 16
SIMD instruction width (AMD) 1
Max clock frequency 925MHz
Graphics IP (AMD) 6.0
Device Partition (core)
Max number of sub-devices 4
Supported partition types none specified
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
Preferred work group size multiple 64
Wavefront width (AMD) 64
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (n/a)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 32, Little-Endian
Global memory size 2134441984 (1.988GiB)
Global free memory (AMD) <printDeviceInfo:68: get number of CL_DEVICE_GLOBAL_FREE_MEMORY_AMD : error -33>
Global memory channels (AMD) 4
Global memory banks per channel (AMD) 16
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 1409077248 (1.312GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 2048 bits (256 bytes)
Global Memory cache type Read/Write
Global Memory cache size 16384
Global Memory cache line 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 bytes
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 32768 (32KiB)
Local memory syze per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max constant buffer size 65536 (64KiB)
Max number of constant args 8
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1501117121906593636ns (Wed Jul 26 21:58:41 2017)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) No
SPIR versions 1.2
printf() buffer size 1048576 (1024KiB)
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_event
Device Name Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz
Device Vendor GenuineIntel
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2348.3)
Driver Version 2348.3 (sse2)
Device OpenCL C Version OpenCL C 1.2
Device Type CPU
Device Profile FULL_PROFILE
Device Board Name (AMD)
Device Topology (AMD) (n/a)
Max compute units 4
Max clock frequency 1200MHz
Device Partition (core, cl_ext_device_fission)
Max number of sub-devices 4
Supported partition types equally, by counts, by affinity domain
Supported affinity domains L3 cache, L2 cache, L1 cache, next partitionable
Supported partition types (ext) equally, by counts, by affinity domain
Supported affinity domains (ext) L3 cache, L2 cache, L1 cache, next fissionable
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 1024
Preferred work group size multiple 1
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 2 / 2 (n/a)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 64, Little-Endian
Global memory size 16749182976 (15.6GiB)
Error Correction support No
Max memory allocation 4187295744 (3.9GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type Read/Write
Global Memory cache size 32768
Global Memory cache line 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 65536 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 8192x8192 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 64
Local memory type Global
Local memory size 32768 (32KiB)
Max constant buffer size 65536 (64KiB)
Max number of constant args 8
Max size of kernel argument 4096 (4KiB)
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1501117121906593636ns (Wed Jul 26 21:58:41 2017)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
SPIR versions 1.2
printf() buffer size 65536 (64KiB)
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_event
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform
I installed latest driver
https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.10-450821.tar.xz
from
http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx
xmr-stak-cpu works just fine
Any ideas how to fix this ?
Thanks !
It was working on crimson 17.7.1, but after I have updated to 17.7.2, it doesn't work anymore.
Hello
I have problems using xmr-stak-amd here is my problem :
I'm using 1 amd R9 380 on Ubuntu 16.04
i install driver from http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx as indicated in documentation.
My starting script :
#!/bin/bash
export GPU_FORCE_64BIT_PTR=1
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100
./xmr-stak-amd
My config file :
"gpu_thread_num" : 1,
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 896, "worksize" : 8, "affine_to_cpu" : false },
],
"platform_index" : 0,
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
"pool_address" : "xmr.crypto-pool.fr:8888",
"wallet_address" : "49r4tSpDTgk2S5GnyM15nCNivRkimwy4KBVdYmY9Wk8dV7b3n9bioxQVGv7Mc6x8ZEbVfoVn71QmuaYNMNTEyXQZ246phFX",
"pool_password" : "x",
"output_file" : "",
"call_timeout" : 10,
"retry_time" : 10,
"giveup_limit" : 0,
"verbose_level" : 4,
"h_print_time" : 60,
"httpd_port" : 0,
"prefer_ipv4" : true,
When i run xmr-stack-amd the program starts normally :
[2017-06-08 12:29:38] : Starting GPU thread, no affinity.
[2017-06-08 12:29:38] : Connecting to pool xmr.crypto-pool.fr:8888 ...
[2017-06-08 12:29:38] : Connected. Logging in...
[2017-06-08 12:29:38] : Difficulty changed. Now: 30000.
[2017-06-08 12:29:38] : New block detected.
but after a few minutes I have this error :
./start.sh : ligne 7 : 3890 Instruction non permise (core dumped) ./xmr-stak-amd
Would anyone have an idea ?
I am getting in trouble with this GPU as it show as 2 separate gpus. I know it should. but i am only able to use one of them. If i set both up in config.txt i get CL_MEM_OBJECT_ALLOCATION_FAILURE when calling clenqueneNDRangekernel for kernel 0? Also is catalyst 15.12 optimal driver for this?..
Thank you very much btw for sharing all your software its very nice :)
Following Directions to run on Windows but as step #2 states:
Double click the exe file. But when I download and unzip there is no exe?
When I attempt to run xmr-stak-amd (on Arch) I get the following error:
$ ./xmr-stak-amd
[2017-04-18 18:26:24] : Compiling code and initializing GPUs. This will take a while...
[2017-04-18 18:26:24] : Error UNKNOWN_ERROR when calling clGetPlatformIDs for number of platforms.
Running clinfo yields:
$ clinfo
terminate called after throwing an instance of 'cl::Error'
what(): clGetPlatformIDs
[1] 25102 abort (core dumped) clinfo
Here is my config file: http://termbin.com/7sec
Kinda don't really know what to do from here. :/
Hi, not work in ubuntu 16.04 ((( Help please.
[2017-03-07 14:57:48] : Compiling code and initializing GPUs. This will take a while...
[2017-03-07 14:57:48] : Device 0 work size 8 / 256.
[2017-03-07 14:57:48] : Error CL_INVALID_BUFFER_SIZE when calling clCreateBuffer to create hash scratchpads buffer.
Ubuntu 16.04, AMD Radion HD 7850 2G RAM
startup script:
#!/bin/bash
export GPU_FORCE_64BIT_PTR=1
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100
./xmr-stak-amd
config.txt:
/*
* Number of GPUs that you have in your system. Each GPU will get its own CPU thread.
*/
"gpu_thread_num" : 1,
/*
* GPU configuration. You should play around with intensity and worksize as the fastest settings will vary.
* index - GPU index number usually starts from 0
* intensity - Number of parallel GPU threads (nothing to do with CPU threads)
* worksize - Number of local GPU threads (nothing to do with CPU threads)
* affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner.
*/
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
],
/*
* Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel.
*/
"platform_index" : 0,
Hi I need some to help to get it running on OSX.
I have built it but still I got error when I run.
I think the error is in the open.cl as_long function. However, I do not know how to solve it.
[2017-07-15 10:47:25] : Compiling code and initializing GPUs. This will take a while...
[2017-07-15 10:47:25] : Device 0 work size 8 / 512.
[2017-07-15 10:47:25] : Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
:16:26: warning: unknown OpenCL extension 'cl_amd_media_ops2' - ignoring
#pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
^
In file included from :18:
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-aes.cl:76:7: warning: no previous prototype for function 'AES_Round'
uint4 AES_Round(const __local uint *AES0, const __local uint *AES1, const __local uint *AES2, const __local uint *AES3, const uint4 X, const uint4 key)
^
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-aes.cl:79:14: warning: implicit declaration of function 'amd_bfe' is invalid in C99
Y.s0 = AES0[BYTE(X.s0, 0)] ^ AES1[BYTE(X.s1, 1)] ^ AES2[BYTE(X.s2, 2)] ^ AES3[BYTE(X.s3, 3)];
^
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-aes.cl:74:21: note: expanded from macro 'BYTE'
#define BYTE(x, y) (amd_bfe((x), (y) << 3U, 8U))
^
In file included from :19:
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:31:7: warning: no previous prototype for function 'SKEIN_ROT'
ulong SKEIN_ROT(const uint2 x, const uint y)
^
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:33:29: warning: implicit declaration of function 'amd_bitalign' is invalid in C99
if(y < 32) return(as_ulong(amd_bitalign(x, x.s10, 32 - y)));
^
/System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4274:43: note: expanded from macro 'as_ulong'
#define as_ulong( _x ) __builtin_astype( _x, ulong )
^
In file included from :19:
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:33:20: error: invalid reinterpretation: sizes of 'ulong' (aka 'unsigned long') and 'int' must match
if(y < 32) return(as_ulong(amd_bitalign(x, x.s10, 32 - y)));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4274:25: note: expanded from macro 'as_ulong'
#define as_ulong( _x ) __builtin_astype( _x, ulong )
^
In file included from :19:
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:34:14: error: invalid reinterpretation: sizes of 'ulong' (aka 'unsigned long') and 'int' must match
else return(as_ulong(amd_bitalign(x.s10, x, 32 - (y - 32))));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4274:25: note: expanded from macro 'as_ulong'
#define as_ulong( _x ) __builtin_astype( _x, ulong )
^
In file included from :19:
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:37:6: warning: no previous prototype for function 'SkeinMix8'
void SkeinMix8(ulong4 *pv0, ulong4 *pv1, const uint rc0, const uint rc1, const uint rc2, const uint rc3)
^
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:47:8: warning: no previous prototype for function 'SkeinEvenRound'
ulong8 SkeinEvenRound(ulong8 p, const ulong8 h, const ulong *t, const uint s)
^
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:68:8: warning: no previous prototype for function 'SkeinOddRound'
ulong8 SkeinOddRound(ulong8 p, const ulong8 h, const ulong *t, const uint s)
^
/Users/reset/Downloads/xmr-stak-amd/bin/./opencl/wolf-skein.cl:89:8: warning: no previous prototype for function 'Skein512Block'
ulong8 Skein512Block(ulong8 p, ulong8 h, ulong h8, const ulong *t)
^
:57:6: warning: no previous prototype for function 'keccakf1600'
void keccakf1600(ulong *s)
^
:117:6: warning: no previous prototype for function 'keccakf1600_1'
void keccakf1600_1(ulong *st)
^
:176:6: warning: no previous prototype for function 'keccakf1600_2'
void keccakf1600_2(ulong *st)
^
:304:6: warning: no previous prototype for function 'CNKeccak'
void CNKeccak(ulong *output, ulong *input)
^
:328:26: warning: unknown OpenCL extension 'cl_amd_media_ops2' - ignoring
#pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
^
:334:6: warning: no previous prototype for function 'AESExpandKey256'
void AESExpandKey256(uint *keybuf)
^
Hello,
thank you for your code.
compiled successfully
i tried to run, but got an error:
[2017-06-19 21:28:55] : Compiling code and initializing GPUs. This will take a while...
[2017-06-19 21:28:56] : Device 0 work size 8 / 256.
[2017-06-19 21:28:56] : Error CL_OUT_OF_HOST_MEMORY when calling clCreateCommandQueueWithProperties.
config.txt:
"gpu_thread_num" : 1,
"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 8, "worksize" : 8, "affine_to_cpu" : false },
],
"platform_index" : 0,
amdgpu-pro installed.
Number of platforms 1 Platform Name AMD Accelerated Parallel Processing Platform Vendor Advanced Micro Devices, Inc. Platform Version OpenCL 2.0 AMD-APP (2348.3) Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices Platform Extensions function suffix AMDPlatform Name AMD Accelerated Parallel Processing
Number of devices 2
Device Name Pitcairn
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2348.3)
Driver Version 2348.3
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Profile FULL_PROFILE
Device Board Name (AMD) AMD Radeon HD 7800 Series
Device Topology (AMD) PCI-E, 01:00.0
Max compute units 8
SIMD per compute unit (AMD) 4
SIMD width (AMD) 16
SIMD instruction width (AMD) 1
Max clock frequency 860MHz
Graphics IP (AMD) 6.0
Device Partition (core)
Max number of sub-devices 8
Supported partition types none specified
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
Preferred work group size multiple 64
Wavefront width (AMD) 64
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (n/a)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 32, Little-Endian
Global memory size 1750908928 (1.631GiB)
Global free memory (AMD) <printDeviceInfo:68: get number of CL_DEVICE_GLOBAL_FREE_MEMORY_AMD : error -33>
Global memory channels (AMD) 8
Global memory banks per channel (AMD) 16
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 1143533568 (1.065GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 2048 bits (256 bytes)
Global Memory cache type Read/Write
Global Memory cache size 16384
Global Memory cache line 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 bytes
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 32768 (32KiB)
Local memory syze per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max constant buffer size 65536 (64KiB)
Max number of constant args 8
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1497770159747264570ns (Sun Jun 18 10:15:59 2017)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) No
SPIR versions 1.2
printf() buffer size 1048576 (1024KiB)
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_eventDevice Name Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Device Vendor GenuineIntel
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2348.3)
Driver Version 2348.3 (sse2,avx)
Device OpenCL C Version OpenCL C 1.2
Device Type CPU
Device Profile FULL_PROFILE
Device Board Name (AMD)
Device Topology (AMD) (n/a)
Max compute units 8
Max clock frequency 3699MHz
Device Partition (core, cl_ext_device_fission)
Max number of sub-devices 8
Supported partition types equally, by counts, by affinity domain
Supported affinity domains L3 cache, L2 cache, L1 cache, next partitionable
Supported partition types (ext) equally, by counts, by affinity domain
Supported affinity domains (ext) L3 cache, L2 cache, L1 cache, next fissionable
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 1024
Preferred work group size multiple 1
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 4 / 4 (n/a)
float 8 / 8
double 4 / 4 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 64, Little-Endian
Global memory size 16775053312 (15.62GiB)
Error Correction support No
Max memory allocation 4193763328 (3.906GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type Read/Write
Global Memory cache size 32768
Global Memory cache line 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 65536 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 8192x8192 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 64
Local memory type Global
Local memory size 32768 (32KiB)
Max constant buffer size 65536 (64KiB)
Max number of constant args 8
Max size of kernel argument 4096 (4KiB)
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1497770159747264570ns (Sun Jun 18 10:15:59 2017)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
SPIR versions 1.2
printf() buffer size 65536 (64KiB)
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_eventNULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform
thanks in advance
I have done a quick and dirty port to support NiceHash Mining.
If wished i would send the changes to fireice-uk to implement into a beta branch with nicehash support.
Only the benchmark function is not longer working (didn't deep dive into it, don't need it)
:~/source/xmr-stak-amd/bin$ ./xmr-stak-amd
[2017-07-17 22:10:47] : Compiling code and initializing GPUs. This will take a while...
[2017-07-17 22:10:47] : Device 0 work size 16 / 256.
[2017-07-17 22:10:52] : Device 1 work size 16 / 256.
-------------------------------------------------------------------
xmr-stak-amd 1.1.0-1.4.0-dev mining software, AMD Version.
AMD mining code was written by wolf9466.
Brought to you by fireice_uk under GPLv3.
Configurable dev donation level is set to 2.0 %
You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
[2017-07-17 22:10:57] : Starting GPU thread, no affinity.
[2017-07-17 22:10:57] : Starting GPU thread, no affinity.
[2017-07-17 22:10:57] : Connecting to pool cryptonight.eu.nicehash.com:3355 ...
[2017-07-17 22:10:57] : Connected. Logging in...
[2017-07-17 22:10:57] : Difficulty changed. Now: 40000.
[2017-07-17 22:10:57] : New block detected.
[2017-07-17 22:10:58] : New block detected.
[2017-07-17 22:11:10] : Result accepted by the pool.
[2017-07-17 22:11:12] : New block detected.
HASHRATE REPORT
| ID | 10s | 60s | 15m | ID | 10s | 60s | 15m |
| 0 | 611.8 | (na) | (na) | 1 | 607.7 | (na) | (na) |
-----------------------------------------------------
Totals: 1219.5 (na) (na) H/s
Highest: 1219.7 H/s
[2017-07-17 22:11:20] : Result accepted by the pool.
[2017-07-17 22:11:29] : Result accepted by the pool.
[2017-07-17 22:11:43] : Result accepted by the pool.
[2017-07-17 22:11:52] : Result accepted by the pool.
HASHRATE REPORT
| ID | 10s | 60s | 15m | ID | 10s | 60s | 15m |
| 0 | 612.5 | (na) | (na) | 1 | 606.9 | (na) | (na) |
-----------------------------------------------------
Totals: 1219.4 (na) (na) H/s
Highest: 1220.7 H/s
[2017-07-17 22:12:12] : New block detected.
HASHRATE REPORT
| ID | 10s | 60s | 15m | ID | 10s | 60s | 15m |
| 0 | 612.4 | 612.0 | (na) | 1 | 607.5 | 606.6 | (na) |
-----------------------------------------------------
Totals: 1219.9 1218.6 (na) H/s
Highest: 1220.7 H/s
[2017-07-17 22:13:12] : New block detected.
[2017-07-17 22:13:14] : Result accepted by the pool.
[2017-07-17 22:13:17] : New block detected.
[2017-07-17 22:13:22] : Result accepted by the pool.
[2017-07-17 22:13:36] : New block detected.
[2017-07-17 22:13:42] : Result accepted by the pool.
HASHRATE REPORT
| ID | 10s | 60s | 15m | ID | 10s | 60s | 15m |
| 0 | 612.7 | 612.4 | (na) | 1 | 604.3 | 606.6 | (na) |
-----------------------------------------------------
Totals: 1217.0 1218.9 (na) H/s
Highest: 1221.0 H/s
[2017-07-17 22:14:21] : Result accepted by the pool.
[2017-07-17 22:14:21] : New block detected.
[2017-07-17 22:14:27] : Result accepted by the pool.
Hello, I would greatly appreciate any assistance you can give with my issue. I have been trying to resolve it for many days.
I receive the following error when running the program since flashing the following GPU:
Error CL_OUT_OF_RESOURCES when calling clCreateContext.
Dual-X R9 270X 2G D5
The program was mining successfully before I attempted to flash the GPU, as far as I am aware the flash was successful as the GPU works when testing with modern games. The GPU is now running Bios version 015.039.000.001 and was flashed through DOS with ATIFlash successfully, following this I ran atikmdag-patcher-1.4.5 successfully.
Please find an array of logs and outputs below:
clinfo-output.txt
config.txt
gpu-info.txt
xmr-stak-amd_error.txt
[2017-05-01 02:14:46] : Compiling code and initializing GPUs. This will take a while...
[2017-05-01 02:14:46] : Error UNKNOWN_ERROR when calling clGetPlatformIDs for number of platforms.
I am running Debian Stretch with the amdgpu-pro drivers that are now in the debian repos. Everything compiled fine with no errors. I am not sure what the problem is.
EDIT: It appears the firmware is failing to load into the kernel still not sure how to fix that though.
EDIT2: After manually adding polaris10_mc.bin to /lib/firmware/amdgpu the firmware is now loading into the kernel, but I still get the exact same error as before after running ./xmr-stak-amd
'clinfo' prints Number of platforms 0
I have 6 RX 480s installed.
So I get the following error after running the exe, "Error CL_INVALID_BUFFFER_SIZE when calling clCreateBuffer to create hash scratchpads buffer."
All I've done is insert the mining pool address, insert my wallet info, changed it to 1 gpu thread and deleted all but the first gup threads conf line which is currently
"{ "index" : 0, "intensity" : 400, "worksize" : 8, "affine_to_cpu" : false },"
It's set to 400 intensity as I was just trying lower and lower numbers a hundred at a time thinking maybe ti was that.
The GPU is this https://www.techpowerup.com/gpudb/b742/sapphire-hd-5770
Add/Check OpenCl support for Intel GPUs.
#17 added support for GPUs without AMD media extensions, this means that Intel GPUs should be usable.
os: Ubuntu 17.04
Built and currently running the v1.0.0-1.3.1 release just fine... but now I'm trying to build the v1.1.0-1.4.0 release
and get the following:
[ 47%] Linking CXX executable bin/xmr-stak-amd
libxmr-stak-amd-c.a(gpu.c.o): In function InitOpenCLGpu': gpu.c:(.text+0x56a): undefined reference to
clCreateCommandQueueWithProperties'
collect2: error: ld returned 1 exit status
ideas?
[2017-06-11 22:25:27] : Compiling code and initializing GPUs. This will take a while...
[2017-06-11 22:25:27] : Error CL_DEVICE_NOT_FOUND when calling clGetDeviceIDs for number of devices.
Using xmr-stak-amd
amd-app-sdk 3.0 installed
Radeon driver 16.2.1
config:
/*
/*
index - GPU index number usually starts from 0
/*
/*
/*
/*
Both values are in seconds.
don't mine while the connection is lost, so your computer's power usage goes down to idle.
*/
"call_timeout" : 10,
"retry_time" : 10,
"giveup_limit" : 0,
/*
1 - Print intro, connection event, disconnect event
2 - All of level 1, and new job (block) event if the difficulty is different from the last job
3 - All of level 1, and new job (block) event in all cases, result submission event.
4 - All of level 3, and automatic hashrate report printing
*/
"verbose_level" : 3,
/*
This option has no effect if verbose_level is not 4.
*/
"h_print_time" : 60,
/*
/*
*/
"output_file" : "",
/*
/*
This setting will only be needed in 2020's. No need to worry about it now.
*/
"prefer_ipv4" : true,
clinfo.exe:
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP (1912.5)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_amd_event_callback cl_amd_offline_devices
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 1
Device Type: CL_DEVICE_TYPE_CPU
Vendor ID: 1002h
Board name:
Max compute units: 4
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 1024
Preferred vector width char: 16
Preferred vector width short: 8
Preferred vector width int: 4
Preferred vector width long: 2
Preferred vector width float: 4
Preferred vector width double: 2
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 2
Native vector width float: 4
Native vector width double: 2
Max clock frequency: 3600Mhz
Address bits: 64
Max memory allocation: 2147483648
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 64
Max image 2D width: 8192
Max image 2D height: 8192
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 4096
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 32768
Global memory size: 8580943872
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Global
Local memory size: 32768
Max pipe arguments: 16
Max pipe active reservations: 16
Max pipe packet size: 2147483648
Max global variable size: 1879048192
Max global variable preferred total size: 1879048192
Max read/write image args: 64
Max on device events: 0
Queue on device max size: 0
Max on device queues: 0
Queue on device preferred size: 0
SVM capabilities:
Coarse grain buffer: No
Fine grain buffer: No
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 1
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 284
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: Yes
Queue on Host properties:
Out-of-Order: No
Profiling : Yes
Queue on Device properties:
Out-of-Order: No
Profiling : No
Platform ID: 00007FFF7595E188
Name: Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz
Vendor: GenuineIntel
Device OpenCL C version: OpenCL C 1.2
Driver version: 1912.5 (sse2)
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (1912.5)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_spir cl_khr_gl_event
hi @fireice-uk great work.
I could compile the cpu version of your miner but if I do the same steps with amd version then I get error like this
windows pro 10 x64, I have Sapphire RX480 OC 8GB with Crimson 16.9.2
C:\src\xmr-stak-amd\build>cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x64 ..
CMake Error at C:/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
Call Stack (most recent call first):
C:/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
C:/CMake/share/cmake-3.9/Modules/FindOpenCL.cmake:132 (find_package_handle_standard_args)
CMakeLists.txt:46 (find_package)
-- Configuring incomplete, errors occurred!
please help
best regards
I downloaded the .zip and extracted to my desktop. Edited the config file. Next step is to run the .exe file but I don't see it in the file list...
I don't have any file extentions of .exe. Only have .cpp .md and .cbp (eg. xmr-stak-amd.cbp)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.