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

clang with rdc = True fails with fatal error: 'crt/host_defines.h' file not found #160

Closed
rnburn opened this issue Sep 6, 2023 · 1 comment

Comments

@rnburn
Copy link

rnburn commented Sep 6, 2023

Compiling a cuda_library with rdc = True and clang gives me this error

bazel-out/k8-fastbuild/bin/sxt/algorithm/reduction/_dlink_pic/warp_reduction/warp_reduction.cu:26:10: fatal error: 'crt/host_defines.h' file not found
   26 | #include "crt/host_defines.h"
      |          ^~~~~~~~~~~~~~~~~~~~
1 error generated.

I was able to work around the issue with --spawn_strategy local

bazel build --spawn_strategy local //...
@rnburn
Copy link
Author

rnburn commented Sep 6, 2023

Looks like this is fixed in #159

@rnburn rnburn closed this as completed Sep 6, 2023
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

1 participant