OpenCL doesn't work on macOS
LoganDark opened this issue · comments
Before you close this as a duplicate of #9, my issue is different.
My CPU and GPUs support OpenCL:
Device Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz supports OpenCL 1.2
Device Iris Pro supports OpenCL 1.2
Device AMD Radeon R9 M370X Compute Engine supports OpenCL 1.2
So, let's try to build turbokrist:
0 LoganDark ~ git clone --recursive https://github.com/apemanzilla/turbokrist
Cloning into 'turbokrist'...
remote: Counting objects: 579, done.
remote: Total 579 (delta 0), reused 0 (delta 0), pack-reused 579
Receiving objects: 100% (579/579), 132.06 KiB | 0 bytes/s, done.
Resolving deltas: 100% (176/176), done.
Checking connectivity... done.
Submodule 'JKrist' (https://github.com/Lignumm/JKrist) registered for path 'JKrist'
Cloning into '/Users/LoganDark/turbokrist/JKrist'...
cdSubmodule path 'JKrist': checked out 'f0f77f0e1b51e60f2c87d3889d8a760e71725315'
0 LoganDark ~ cd turbokrist
0 LoganDark ~/turbokrist ./gradlew build
Download https://repo1.maven.org/maven2/org/json/json/20160212/json-20160212.pom
Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Download https://repo1.maven.org/maven2/org/json/json/20160212/json-20160212.jar
:JKrist:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:JKrist:processResources UP-TO-DATE
:JKrist:classes
:JKrist:jar
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processResources
:classes
:jar
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processTestResources
:testClasses
:test
me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
org.bridj.SignalError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
java.lang.NoClassDefFoundError
java.lang.NullPointerException
5 tests completed, 5 failed
:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///Users/LoganDark/turbokrist/build/reports/tests/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 19.574 secs
It compiles/builds fine. It's the tests that fail.
Your title about sums it up, Apple don't seem to put effort into their graphics drivers in any way. We haven't gotten OpenCL to work on a single Mac.
logan you dumbass if someone deletes a comment thats becuase its no logner relevant
try using your brain before responding to text that doesnt exist you lunatic
Turbokrist isn't being maintained any more.
I'm not sure what you're trying to do anyways - we've established that OpenCL doesn't play well with Apple in general, and a VM isn't going to help without GPU passthrough or similar, which, (last I checked) wasn't possible on OSX anyways.