I have successfuly compiled 4.0.4 on CentOS6.9 for NVidia.
(kernel 2.6.32-696.3.1.el6.x86_64 and gcc-4.8.2 ).
Compiling for AMD works (AMDAPPSDK-2.9-1)
Problem is, I also have a R9-280x in the box, it is displayed, but when configuring it I do not get the opencl data for the GPU but for the CPU:
Do you have a hint for me ?
# bin/gpuPlotGenerator.exe listPlatforms
-------------------------
GPU plot generator v4.0.4
-------------------------
Author: Cryo
Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD
Burst: BURST-YA29-QCEW-QXC3-BKXDL
----
Platforms number: 2
----
Id: 0
Name: AMD Accelerated Parallel Processing
Vendor: Advanced Micro Devices, Inc.
Version: OpenCL 1.2 AMD-APP (1445.5)
----
Id: 1
Name: NVIDIA CUDA
Vendor: NVIDIA Corporation
Version: OpenCL 1.2 CUDA 8.0.0
# bin/gpuPlotGenerator.exe listDevices 0
-------------------------
GPU plot generator v4.0.4
-------------------------
Author: Cryo
Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD
Burst: BURST-YA29-QCEW-QXC3-BKXDL
----
Devices number: 1
----
Id: 0
Type: CPU
Name: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
Vendor: GenuineIntel
Version: OpenCL 1.2 AMD-APP (1445.5)
Driver version: 1445.5 (sse2,avx)
Max clock frequency: 2600MHz
Max compute units: 16
Global memory size: 63GB 11MB 436KB
Max memory allocation size: 15GB 770MB 877KB
Max work group size: 1024
Local memory size: 32KB
Max work-item sizes: (1024, 1024, 1024)
# ldd bin/gpuPlotGenerator.exe
linux-vdso.so.1 => (0x00007ffe9d1b3000)
libOpenCL.so.1 => /opt/AMDAPPSDK-2.9-1/lib/x86_64/libOpenCL.so.1 (0x00007fb1dbae8000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fb1db7d5000)
libm.so.6 => /lib64/libm.so.6 (0x00007fb1db551000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fb1db33b000)
libc.so.6 => /lib64/libc.so.6 (0x00007fb1dafa6000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb1dad89000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fb1dab85000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb1dbcf0000)