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

surround gpu functions by CHAI_GPUCC #152

Merged
merged 2 commits into from
Sep 17, 2020

Conversation

dtaller
Copy link
Contributor

@dtaller dtaller commented Sep 8, 2020

Previously, when compiling cpu-only builds, I would get compiler warnings with functions like gpuMalloc(void** devPtr, size_t size) because the arguments devPtrffer and size are unused for non-gpu builds.

We avoid this by surrounding gpu functions by CHAI_GPUCC . These functions should not get called anyway for non-gpu builds

@davidbeckingsale davidbeckingsale merged commit de137e0 into LLNL:develop Sep 17, 2020
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

Successfully merging this pull request may close these issues.

2 participants