Skip to content

surround gpu functions by CHAI_GPUCC#152

Merged
davidbeckingsale merged 2 commits intollnl:developfrom
dtaller:fixunusedarggpuwarn
Sep 17, 2020
Merged

surround gpu functions by CHAI_GPUCC#152
davidbeckingsale merged 2 commits intollnl:developfrom
dtaller:fixunusedarggpuwarn

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