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

Mac compilation with nvml enabled fails #35

Open
jason-tilley opened this issue Feb 10, 2018 · 3 comments
Open

Mac compilation with nvml enabled fails #35

jason-tilley opened this issue Feb 10, 2018 · 3 comments

Comments

@jason-tilley
Copy link

I'm trying to get nsgminer to compile on my Mac, but it only works with the --disable-nvml flag set. Without it I get

CC       error.lo
nvml.c:207:5: error: use of undeclared identifier 'opt_nonvml'
nvml.c:207:18: error: use of undeclared identifier 'true'
2 errors generated.

I have CUDA Toolkit 9.1 installed. Does anyone know what the problem is?

@ghostlander
Copy link
Owner

NVML doesn't depend on CUDA. It needs libnvidia-ml.so supplied with the NVIDIA proprietary drivers.

Although in this case change type of opt_nonvml from bool to int and replace true with 1, false with 0.

@jason-tilley
Copy link
Author

Thanks for the help. I haven't worked with C since college (a pretty long time ago). Should I declare opt_nonvml a static int? Declaring as an extern int gives me:

:info:build nvml.c:207:5: error: use of undeclared identifier 'opt_nonvml'
:info:build     opt_nonvml = 1;

@jason-tilley
Copy link
Author

And to be clear, this configure option affects GPU monitoring but not mining performance, correct?

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