fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

Question: How to do gpu mining with Intel Iris on macOS? #1539

Closed nottoseethesun closed 6 years ago

nottoseethesun commented 6 years ago

I see that some users are utilizing a similar set-up and having gpu usage, but currently I only have cpu mining with xmr-stak (checked gpu usage monitor), although I built using the AMD commands. I filled out all the info below:

Basic information

Compile issues

cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=ON

-- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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_2 -- Looking for CL_VERSION_2_2 - not found -- Looking for CL_VERSION_2_1 -- Looking for CL_VERSION_2_1 - not found -- Looking for CL_VERSION_2_0 -- Looking for CL_VERSION_2_0 - not found -- Looking for CL_VERSION_1_2 -- Looking for CL_VERSION_1_2 - found -- Found OpenCL: /System/Library/Frameworks/OpenCL.framework (found version "1.2") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE
-- Found OpenSSL: /usr/local/opt/openssl/lib/libcrypto.dylib (found version "1.0.2o") fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git -- Configuring done -- Generating done -- Build files have been written to: /Users/foo/code/xmr-stak-2.4.3

make install Scanning dependencies of target xmr-stak-c [ 3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o [ 6%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o [ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o [ 13%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o [ 16%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o [ 20%] Linking C static library bin/libxmr-stak-c.a [ 20%] Built target xmr-stak-c Scanning dependencies of target xmr-stak-backend [ 23%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o [ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o [ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o /Users/foo/code/xmr-stak-2.4.3/xmrstak/backend/cpu/hwlocMemory.cpp:40:12: warning: 'hwloc_set_membind_nodeset' is deprecated [-Wdeprecated-declarations] if( 0 > hwloc_set_membind_nodeset( ^ /usr/local/include/hwloc/deprecated.h:98:127: note: 'hwloc_set_membind_nodeset' has been explicitly marked deprecated here hwloc_set_membind_nodeset(hwloc_topology_t topology, hwloc_const_nodeset_t nodeset, hwloc_membind_policy_t policy, int flags) hwloc_attribute_deprecated; ^ /usr/local/include/hwloc/autogen/config.h:139:54: note: expanded from macro 'hwloc_attribute_deprecated'

define hwloc_attribute_deprecated attribute((deprecated__))

                                                 ^

1 warning generated. [ 33%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o [ 36%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o [ 40%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o [ 43%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o [ 46%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o [ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o [ 53%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o [ 56%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o [ 60%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o [ 63%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o [ 66%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/uac.cpp.o [ 70%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o [ 73%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o [ 76%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o [ 80%] Linking CXX static library bin/libxmr-stak-backend.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bin/libxmr-stak-backend.a(uac.cpp.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bin/libxmr-stak-backend.a(uac.cpp.o) has no symbols [ 80%] Built target xmr-stak-backend Scanning dependencies of target xmr-stak [ 83%] Building CXX object CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o [ 86%] Linking CXX executable bin/xmr-stak [ 86%] Built target xmr-stak Scanning dependencies of target xmrstak_opencl_backend [ 90%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/amd_gpu/gpu.cpp.o [ 93%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/jconf.cpp.o [ 96%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/minethd.cpp.o [100%] Linking CXX shared library bin/libxmrstak_opencl_backend.dylib [100%] Built target xmrstak_opencl_backend Install the project... -- Install configuration: "Release" xmr-stak installed to folder 'bin'

run cmake -LA . in the build folder and add the output here

xmr-stak-2.4.3$ cmake -LA fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git -- Configuring done -- Generating done -- Build files have been written to: /Users/foo/code/xmr-stak-2.4.3 -- Cache values CMAKE_AR:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar CMAKE_BUILD_TYPE:STRING=Release CMAKE_COLOR_MAKEFILE:BOOL=ON CMAKE_CXX_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ CMAKE_CXX_FLAGS:STRING= CMAKE_CXX_FLAGS_DEBUG:STRING=-g CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc CMAKE_C_FLAGS:STRING= CMAKE_C_FLAGS_DEBUG:STRING=-g CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_EXE_LINKER_FLAGS:STRING= CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool CMAKE_INSTALL_PREFIX:PATH=/Users/foo/code/xmr-stak-2.4.3 CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld CMAKE_LINK_STATIC:BOOL=OFF CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make CMAKE_MODULE_LINKER_FLAGS:STRING= CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_NM:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND CMAKE_OBJDUMP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump CMAKE_OSX_ARCHITECTURES:STRING= CMAKE_OSX_DEPLOYMENT_TARGET:STRING= CMAKE_OSX_SYSROOT:STRING= CMAKE_RANLIB:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib CMAKE_SHARED_LINKER_FLAGS:STRING= CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_SKIP_INSTALL_RPATH:BOOL=NO CMAKE_SKIP_RPATH:BOOL=NO CMAKE_STATIC_LINKER_FLAGS:STRING= CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_STRIP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE CPU_ENABLE:BOOL=ON CUDA_ENABLE:BOOL=OFF EXECUTABLE_OUTPUT_PATH:STRING=bin HWLOC:FILEPATH=/usr/local/lib/libhwloc.dylib HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/local/include LIBRARY_OUTPUT_PATH:STRING=bin MHTD:FILEPATH=/usr/local/lib/libmicrohttpd.dylib MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/local/include OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libcrypto.dylib OPENSSL_INCLUDE_DIR:PATH=/usr/local/opt/openssl/include OPENSSL_SSL_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libssl.dylib OpenCL_ENABLE:BOOL=ON OpenCL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenCL.framework OpenCL_LIBRARY:FILEPATH=/System/Library/Frameworks/OpenCL.framework OpenSSL_ENABLE:BOOL=ON PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/local/bin/pkg-config XMR-STAK_COMPILE:STRING=native xmr-stak-2.4.3$


# Issue with the execution
  - Do you compiled the miner by our own?

run ./xmr-stak --version-long and add the output here

$ ./xmr-stak --version-long Version: xmr-stak/2.4.3/26a5d65f/unknown/mac/amd-cpu/aeon-cryptonight-monero/20


# AMD OpenCl issue

run clinfo and add the output here

xmr-stak-2.4.3$ cmake -LA fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git -- Configuring done -- Generating done -- Build files have been written to: /Users/foo/code/xmr-stak-2.4.3 -- Cache values CMAKE_AR:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar CMAKE_BUILD_TYPE:STRING=Release CMAKE_COLOR_MAKEFILE:BOOL=ON CMAKE_CXX_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ CMAKE_CXX_FLAGS:STRING= CMAKE_CXX_FLAGS_DEBUG:STRING=-g CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc CMAKE_C_FLAGS:STRING= CMAKE_C_FLAGS_DEBUG:STRING=-g CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_EXE_LINKER_FLAGS:STRING= CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool CMAKE_INSTALL_PREFIX:PATH=/Users/foo/code/xmr-stak-2.4.3 CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld CMAKE_LINK_STATIC:BOOL=OFF CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make CMAKE_MODULE_LINKER_FLAGS:STRING= CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_NM:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND CMAKE_OBJDUMP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump CMAKE_OSX_ARCHITECTURES:STRING= CMAKE_OSX_DEPLOYMENT_TARGET:STRING= CMAKE_OSX_SYSROOT:STRING= CMAKE_RANLIB:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib CMAKE_SHARED_LINKER_FLAGS:STRING= CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_SKIP_INSTALL_RPATH:BOOL=NO CMAKE_SKIP_RPATH:BOOL=NO CMAKE_STATIC_LINKER_FLAGS:STRING= CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_STRIP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE CPU_ENABLE:BOOL=ON CUDA_ENABLE:BOOL=OFF EXECUTABLE_OUTPUT_PATH:STRING=bin HWLOC:FILEPATH=/usr/local/lib/libhwloc.dylib HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/local/include LIBRARY_OUTPUT_PATH:STRING=bin MHTD:FILEPATH=/usr/local/lib/libmicrohttpd.dylib MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/local/include OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libcrypto.dylib OPENSSL_INCLUDE_DIR:PATH=/usr/local/opt/openssl/include OPENSSL_SSL_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libssl.dylib OpenCL_ENABLE:BOOL=ON OpenCL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenCL.framework OpenCL_LIBRARY:FILEPATH=/System/Library/Frameworks/OpenCL.framework OpenSSL_ENABLE:BOOL=ON PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/local/bin/pkg-config XMR-STAK_COMPILE:STRING=native

$ ./xmr-stak --version-long Version: xmr-stak/2.4.3/26a5d65f/unknown/mac/amd-cpu/aeon-cryptonight-monero/20

xmr-stak-2.4.3/bin$ clinfo Number of platforms 1 Platform Name Apple Platform Vendor Apple Platform Version OpenCL 1.2 (Mar 15 2018 21:59:37) Platform Profile FULL_PROFILE Platform Extensions cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event

Platform Name Apple Number of devices 2 Device Name Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz Device Vendor Intel Device Vendor ID 0xffffffff Device Version OpenCL 1.2 Driver Version 1.1 Device OpenCL C Version OpenCL C 1.2 Device Type CPU Device Profile FULL_PROFILE Device Available Yes Compiler Available Yes Linker Available Yes Max compute units 4 Max clock frequency 2800MHz Device Partition (core) Max number of sub-devices 0 Supported partition types None Supported affinity domains (n/a) Max work item dimensions 3 Max work item sizes 1024x1x1 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 0 / 0 (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 Address bits 64, Little-Endian Global memory size 8589934592 (8GiB) Error Correction support No Max memory allocation 2147483648 (2GiB) 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 64 Global Memory cache line size 3145728 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 Base address alignment for 2D image buffers 1 bytes Pitch alignment for 2D image buffers 1 pixels 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 8 Local memory type Global Local memory size 32768 (32KiB) Max number of constant args 8 Max constant buffer size 65536 (64KiB) 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 Execution capabilities
Run OpenCL kernels Yes Run native kernels Yes printf() buffer size 1048576 (1024KiB) Built-in kernels (n/a) Device Extensions cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event 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_byte_addressable_store cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_APPLE_fp64_basic_ops cl_APPLE_fixed_alpha_channel_orders cl_APPLE_biased_fixed_point_image_formats cl_APPLE_command_queue_priority

Device Name Iris Device Vendor Intel Device Vendor ID 0x1024500 Device Version OpenCL 1.2 Driver Version 1.2(Mar 15 2018 22:04:19) Device OpenCL C Version OpenCL C 1.2 Device Type GPU Device Profile FULL_PROFILE Device Available Yes Compiler Available Yes Linker Available Yes Max compute units 40 Max clock frequency 1200MHz Device Partition (core) Max number of sub-devices 0 Supported partition types None Supported affinity domains (n/a) Max work item dimensions 3 Max work item sizes 512x512x512 Max work group size 512 Preferred work group size multiple 32 Preferred / native vector sizes
char 1 / 1
short 1 / 1
int 1 / 1
long 1 / 1
half 0 / 0 (n/a) float 1 / 1
double 0 / 0 (n/a) 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 (n/a) Address bits 64, Little-Endian Global memory size 1610612736 (1.5GiB) Error Correction support No Max memory allocation 402653184 (384MiB) 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 None Image support Yes Max number of samplers per kernel 16 Max size for 1D images from buffer 25165824 pixels Max 1D or 2D image array size 2048 images Base address alignment for 2D image buffers 4 bytes Pitch alignment for 2D image buffers 32 pixels 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 number of constant args 8 Max constant buffer size 65536 (64KiB) Max size of kernel argument 1024 Queue properties
Out-of-order execution No Profiling Yes Prefer user sync for interop Yes Profiling timer resolution 80ns Execution capabilities
Run OpenCL kernels Yes Run native kernels No printf() buffer size 1048576 (1024KiB) Built-in kernels (n/a) Device Extensions cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event 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_image2d_from_buffer cl_khr_gl_depth_images cl_khr_depth_images cl_khr_3d_image_writes

NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Apple clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [P0] clCreateContext(NULL, ...) [default] Success [P0] clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1) Platform Name Apple Device Name Iris clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) Success (1) Platform Name Apple Device Name Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1) Platform Name Apple Device Name Iris clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) Invalid device type for platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (2) Platform Name Apple Device Name Iris Device Name Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz NOTE: your OpenCL library only supports OpenCL 1.0, but some installed platforms support OpenCL 1.2. Programs using 1.2 features may crash or behave unexpectedly xmr-stak-2.4.3/bin$


# Stability issue
  - Is the CPU or GPU overclocked?
No.
  - Is the Main memory of the CPU or GPU undervolted?
No.

  - Additionally, here's the startup output:

$ ./xmr-stak [2018-05-04 01:22:25] : MEMORY ALLOC FAILED: mmap failed [2018-05-04 01:22:26] : MEMORY ALLOC FAILED: mmap failed [2018-05-04 01:22:26] : MEMORY ALLOC FAILED: mmap failed [2018-05-04 01:22:26] : MEMORY ALLOC FAILED: mmap failed [2018-05-04 01:22:26] : MEMORY ALLOC FAILED: mmap failed

xmr-stak 2.4.3 26a5d65f

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk). Based on OpenCL mining code by wolf9466.

Configurable dev donation level is set to 2.0%

You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection

[2018-05-04 01:22:26] : Mining coin: monero7 [2018-05-04 01:22:26] : Found AMD platform index id = 0, name = Apple [2018-05-04 01:22:26] : WARNING: No AMD device found. [2018-05-04 01:22:26] : WARNING: backend AMD (OpenCL) disabled. [2018-05-04 01:22:26] : WARNING on macOS thread affinity is only advisory. [2018-05-04 01:22:26] : Starting 1x thread, affinity: 0. [2018-05-04 01:22:26] : hwloc: set_thisthread_membind not supported [2018-05-04 01:22:26] : WARNING on macOS thread affinity is only advisory. [2018-05-04 01:22:26] : Starting 1x thread, affinity: 2. [2018-05-04 01:22:26] : MEMORY ALLOC FAILED: mmap failed [2018-05-04 01:22:26] : hwloc: set_thisthread_membind not supported [2018-05-04 01:22:26] : Fast-connecting to pool.supportxmr.com:5555 pool ... [2018-05-04 01:22:27] : MEMORY ALLOC FAILED: mmap failed [2018-05-04 01:22:27] : Pool pool.supportxmr.com:5555 connected. Logging in... [2018-05-04 01:22:27] : Difficulty changed. Now: 10000. [2018-05-04 01:22:27] : Pool logged in. [2018-05-04 01:22:41] : Difficulty changed. Now: 13333. [2018-05-04 01:22:41] : New block detected. [2018-05-04 01:23:41] : Difficulty changed. Now: 8889. [2018-05-04 01:23:41] : New block detected. [2018-05-04 01:24:00] : New block detected. [2018-05-04 01:24:41] : Difficulty changed. Now: 5926. [2018-05-04 01:24:41] : New block detected. [2018-05-04 01:25:29] : Result accepted by the pool. [2018-05-04 01:25:41] : Difficulty changed. Now: 5000. [2018-05-04 01:25:41] : New block detected. [2018-05-04 01:26:42] : New block detected. [2018-05-04 01:26:52] : Result accepted by the pool. [2018-05-04 01:27:26] : Result accepted by the pool. [2018-05-04 01:27:42] : New block detected.


 - Also, hash rate report is:

Thread ID 10s 60s 15m H/s 0 18.8 20.8 21.8 1 18.4 19.9 20.8 Totals: 37.2 40.8 42.6 Highest: 50.3

uvtzxpm commented 6 years ago

It's possible but the mining speed is so slow that it's probably not worth the time or electricity cost.

I see that some users are utilizing a similar set-up and having gpu usage

Can you link to where you saw this?

psychocrypt commented 6 years ago

Save your time and miner on cpu or amd, nvidia. Intel is not able to build gpus for computing. the gpus are slow and stile RAM from the cpu and than your cpu is also slow.

Spudz76 commented 6 years ago

You would have to hack the code and possibly adjust some of the OpenCL calls (standard? more like loose club...) There used to be an old PR that had most of the hacks but the code has changed since then... more of a follow the crumbs. But it mentioned Intel in the title...

And then at the end of it all you can mine 25H/s and feel cheated out of all the effort, and just use the 50H/s CPU alone. If it is an iGPU (in the CPU) then you won't be able to CPU mine at the same time, they stomp on the same unified cache. If it is non-embedded discrete somehow, it still says it is on system memory (not GDDR5 of its own, local) so you can't even really use the GPU 'power' that is available, the ram is just too slow and holds it back like a parachute (therefore the useless hashrate)

Spudz76 commented 6 years ago

https://forums.developer.apple.com/message/274587#274587

That thread seems to allude that parts of the Intel don't fully work anyway, and this uses that cl_khr_fp64 but not immediately sure if also using exp() anywhere. So you may not ever manage to see the horrible watt-chewing rate it might get.

nottoseethesun commented 6 years ago

Responding to @uvtzxpm : This post has discussion of a system with Iris on it (but also nvidia): https://github.com/fireice-uk/xmr-stak/issues/326

nottoseethesun commented 6 years ago

Thanks all for the great info, that answers the question pretty well. Closing this then.