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

ATI/AMD GPU support on Mac #30

Open
danacton opened this issue Jan 6, 2018 · 3 comments
Open

ATI/AMD GPU support on Mac #30

danacton opened this issue Jan 6, 2018 · 3 comments

Comments

@danacton
Copy link

danacton commented Jan 6, 2018

Hi!

Thanks for a neat tool. I've compiled nsgminer on my Mac, but I think I've missed the part about enabling GPU support - I'm not sure if it's actually using the GPU.

Here's what I see:

[2018-01-06 22:43:23] OpenCL platform 0 vendor: Apple                    
[22:43:23] OpenCL platform 0 name: Apple                    
[22:43:23] OpenCL platform 0 version: OpenCL 1.2 (Oct 31 2017 18:19:43)                    
[22:43:24] Platform 0 devices: 1                    
[22:43:24] 	0	ATI Radeon HD 6750M
                    
[22:43:24] 1 OpenCL GPU device detected
                    
[22:43:24] Unable to load the AMD Display Library 

I managed to locate the AMD-APP-SDK-v2.4-lnx64 file and extract it, but it doesn't appear to have anything I can use. OpenCL on Mac doesn't seem to use the files, and it isn't clear which directory they might belong in.

When I use the application, I see something like this:

[P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit
OCL 0: | 11.0 12.8 0.0 KH/s | A:0 R:0 HW:0 U:0.0/m

Does that mean it's using my GPU?

If I use the 'g' key it shows me that each thread (I set it to 4 threads at intensity 9) is running at around 2kH/s. Is that usual for GPU?

Thanks

@ghostlander
Copy link
Owner

It does use your GPU. No need to configure it for more than one thread. Use neoscrypt_vliw or neoscrypt_vliwp kernel for better performance.

@danacton
Copy link
Author

danacton commented Jan 7, 2018

Thanks for the quick response.

When I pass the -k neoscrypt_vliw cmdline arg, I get this:

[07:03:49] Probing for an alive pool
[07:03:50] Error -11: Building Program (clBuildProgram)
[07:03:50] Error returned by cvms_element_build_from_source
[07:03:50] Failed to init GPU thread 0, disabling device 0
[07:03:50] Restarting the GPU from the menu will not fix this.
[07:03:50] Try to restart the miner.
Press enter to continue:

And then the miner continues without the the GPU (the OCL 0 line notes it is OFF).

Do I need to add some different flags while compiling or so?

@ghostlander
Copy link
Owner

It seems Apple OpenCL has a problem with this kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants