Skip to content
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

ocl_cuckaroo plugin crash with AMD (Mac Pro) #199

Open
timetoseek opened this issue Mar 7, 2019 · 11 comments
Open

ocl_cuckaroo plugin crash with AMD (Mac Pro) #199

timetoseek opened this issue Mar 7, 2019 · 11 comments
Labels
bug Something isn't working help wanted Extra attention is needed needs more info

Comments

@timetoseek
Copy link

The "ocl_cuckaroo" plugin crashes immediately on my Mac Pro 2012 (Mojave), with 2 CPU's (12 cores total), and an AMD Radeon RX 580 (8GB). Here is the section of "grin-miner.toml" with applicable configurations:
plugin_name = "ocl_cuckaroo"
[mining.miner_plugin_config.parameters]
platform = 0
device = 1

Screen print of the crash is as follows:
ocl_cuckaroo_plugin_crash

What is interesting is that I am able to run the "ocl_cuckatoo" plugin just fine, as well as the "cuckaroo_cpu_compat_29", works OK. Screen prints are as follows:

ocl_cuckatoo_plugin_works

cuckaroo_cpu_compat_29_plugin_works

@timetoseek
Copy link
Author

What is interesting is that I am able to run the "ocl_cuckatoo" plugin just fine, as well as the "cuckaroo_cpu_compat_29", works OK. Screen prints are as follows:

Update: after running the "ocl_cuckatoo" plugin overnight, there were no shares accepted (!), so there's possibly a bug in "ocl_cuckatoo" or some compatibility issue with my AMD card...
In any case, I've stopped running the "ocl_cuckatoo" plugin on my Mac Pro, and now just running a Grin node & wallet, and Grin-Miner with the "cuckaroo_cpu_compat_29" plugin (which does accept shares).

@timetoseek
Copy link
Author

another screen shot of the crash of "ocl_cuckaroo" plugin, plus additional information about th GPU used...

ocl_cuckaroo_crash_no_ui


GPU_info

@hashmap
Copy link
Contributor

hashmap commented Mar 8, 2019

Could you post an output of clinfo command?
Some cards shows 256 as max wg size, while in reality RX 580 supports 1024, so we try to fix it here https://github.com/mimblewimble/grin-miner/blob/master/ocl_cuckaroo/src/trimmer.rs#L91 it seems it doesn't work in your case

@hashmap hashmap added bug Something isn't working needs more info labels Mar 8, 2019
@timetoseek
Copy link
Author

timetoseek commented Mar 8, 2019

Could you post an output of clinfo command?

Yes, please see links below:

clinfo_mac_format.txt


clinfo_dos_format.txt

@hashmap
Copy link
Contributor

hashmap commented Mar 8, 2019

Thanks. That's what I said:

 Max work item sizes                             256x256x256
 Max work group size                             256

we have no problem to set the correct value (1024) on linux, obv it doesn't work on mac. Perhaps you can find a way to somehow set it manually while I'll try to find a solution. Unfortunately I don't have an amd card to test with mac, so may need your assistance.

@timetoseek
Copy link
Author

timetoseek commented Mar 8, 2019

OK, I'll see what I can do to set it manually (?), not sure how this can be done but I'll dig around..
Also, would be glad to help you with testing, no problem...

@timetoseek
Copy link
Author

After doing some digging/tweaking, I am unfortunately unable to get the ocl_cuckaroo plugin to work on macOS... all out of ideas at this point... if you have any ideas or testing for me, then please let me know, would be glad to help... thank you!

@timetoseek
Copy link
Author

Still trying to get ocl_cuckaroo plugin to work for macOS. Have also tried to compile using Xcode, but still the ocl_cuckaroo plugin crashes due to the Max workgroup size issue mentioned above...
By the way, there is some helpful information about max workgroup size in this thread: ROCm/ROCm#330

@hashmap
Copy link
Contributor

hashmap commented Mar 23, 2019

I wonder why you have only Apple platform. Is it possible to install AMD drivers?

@timetoseek
Copy link
Author

That is a good question... the AMD graphics driver is part of the operating system, so there are no additional drivers needed or available...

One additional note-- the macOS version of OpenCL is quite ancient, and unlikely to be updated (Apple is suggesting developers adopt Metal instead of OpenCL)... actually, OpenCL was depreciated in Mojave (in other words, the deprecated APIs will be removed entirely from future versions of macOS 😟

Here is the announcement from Apple, please read towards the end of the article...Deprecation of OpenCL

@quentinlesceller quentinlesceller added the help wanted Extra attention is needed label Mar 9, 2020
@weibel
Copy link

weibel commented Jan 5, 2021

This issue is a bit old but does anyone know if there since has been any work done to support metal on MacOS e.g. through https://github.com/gfx-rs/gfx or https://github.com/gfx-rs/wgpu-rs ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed needs more info
Projects
None yet
Development

No branches or pull requests

4 participants