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

Bad dependency in new build system #26

Open
trquinn opened this issue Oct 1, 2019 · 1 comment
Open

Bad dependency in new build system #26

trquinn opened this issue Oct 1, 2019 · 1 comment
Assignees

Comments

@trquinn
Copy link
Member

trquinn commented Oct 1, 2019

Compiling the GPU version, then logging out, then logging back in to recompile, will generate an error like:

make
make: *** No rule to make target '/tmp/pbs.7324411.pbspl1.nas.nasa.gov/tmpxft_00013835_00000000-5_HostCUDA.cudafe1.cpp', needed by 'HostCUDA.o'. Stop.

A workaround is to remove the HostCUDA.d file, since it has the dependency on the tmp file.

@hainest
Copy link
Contributor

hainest commented Oct 1, 2019

This is something I had seen before, but didn't make a note of. Since the temp file is created by nvcc and it's the only way the compiler can track dependencies automatically, there are only two solutions, and neither is very pleasant. The first is to have the user delete the dependency file manually. The second is to not have the compiler automatically generate dependencies for .cu files. This, of course, means that all CUDA code will be re-compiled for every CUDA build.

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

2 participants