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

Build allows missing nvidia CUDA compiler to cause error at compile time #275

Open
brettviren opened this issue Feb 13, 2024 · 0 comments
Open
Labels
build Related to build errors and features

Comments

@brettviren
Copy link
Member

It looks like it is possible for wcb to get all the way to building cuda/ subpackage while having an empty string set for the nvcc compiler.

Errors from wcb are like:

Exception: ['-shared', '-Xcompiler', '-fPIC', '-I.', '-Icuda/inc', '-I../cuda/inc', '../cuda/src/simplecudatest.cu', '-c', '-o', 'cuda/src/simplecudatest.cu.2.o']
...
FileNotFoundError: [Errno 2] No such file or directory: '-shared'

It is not clear if this is a failure in the waft/ detection of CUDA or something else.

If CUDA support is not required, the simplest work-around for now is to not build the cuda/ sub-package even if CUDA is (half) detected. This is done with the option:

./wcb configure --with-cuda=no [...nominal configure options...]
@brettviren brettviren added the build Related to build errors and features label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to build errors and features
Projects
None yet
Development

No branches or pull requests

1 participant