-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on compiling time for AMD GPU (macOS) #277
Comments
Same here ... |
Yes...i use Radeon 5450 HD get same error |
HI! how to compile in macOS? I only see instructions for Linux or Windows :( |
It is the same as for Ubuntu, see this link: https://github.com/xmrig/xmrig-amd/wiki/Ubuntu-Build |
It didn't work for me neither failing at the 'cmake ..' command. -- The C compiler identification is AppleClang 10.0.1.10010046 |
This is a very old issue, but it still exists. There is a function in src/amd/opencl/cryptonight.cl called Skein. Near the end of that function, there are 4 lines that read:
When I comment out those 4 lines, clBuildProgram succeeds, and xmrig-amd starts hashing, and the video display slows down terribly. You could try it out and verify whether that's where the issue lies. Those are probably 4 lines of important code that screw up all the hashing when commented out, so this isn't a fix, but it does identify the part that's breaking. What's strange is that in the function called JH, which is the function after Skein, there is an identical code block that doesn't break. I suppose JH may never get called, and Skein does, but that's speculation on my part. Someone who knows the code better might be able to take a look at this. |
Maybe it would be great to use Metal API instead of OpenCL. Metal is up to date and well optimized. But I can understand that it would be a huge development work. |
How would you go about to get xmrig-amd to use metal? I managed to compile it somehow on a mojave system with rx 580, but got stuck when it couldn't detect it. I have both searched for a way to either update opencl beyond 1.2 or find a gpu-miner that utilize metal. |
@KhronosGroup intends to host/coordinate a project for OpenCL over Metal as part of OpenCL 3.0. AFAIK, there is no timetable, and there is some question whether that will be on the schedule at all, but I think it would be very useful here. https://images.anandtech.com/doci/15746/OpenCL%2030%20Press%20Deck_20.png |
Hi, there is fork that is working on macos AMD, tested on KaPow algo. Can someone test it and if it works which algos are working?
|
I downloaded and compiled
xmrig-amd
from releases with no issue. But when I startxmrig
with default config I get the following output:My hardware:
I don't understand what this error means.
The text was updated successfully, but these errors were encountered: