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

Fix CUDA build #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix CUDA build #5

wants to merge 1 commit into from

Conversation

elliottslaughter
Copy link
Collaborator

Fixes #4.

__CUDACC__ is not set in CPU source files, so we cannot rely on it. We cannot redefine double2 is CUDA code when Legion is built with Legion_REDOP_COMPLEX. So instead we branch on USE_CUDA to determine if we need to go down this path, and we rely on CUDA's double2 in all CUDA builds (both host and device code). In non-CUDA builds we define our own like we do today.

Tested in both CUDA and non-CUDA builds.

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.

CUDA build fails
1 participant