-
Notifications
You must be signed in to change notification settings - Fork 64
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
Can't build with NVCC option '--Werror cross-execution-space-call' on Windows #62
Comments
There is also an issue with assignment in a conditional statement. I have issued a PR (#63) for that but am not sure how to fix the issue above. |
Thanks for the PR! I filed an internal bug about the |
The
https://ci.appveyor.com/project/mondus/flamegpu2-dev/builds/32555760#L182 |
Tested under Visual Studio 2015 and 2019, with CUDA 10.1/10.2.
If you try to build the below example with
--Werror cross-execution-space-call
enabled in Visual Studio it will fail.This is the flag for
error : calling a __host__ function from a __host__ __device__ function is not allowed
Under Visual Studio 2015, it produces the compilation error shown at the bottom of this issue.
TLDR: This is the offending line
_ranked_keys.erase(rank);
I'm not actually sure why it's being triggered in this instance, but it's upsetting one of our continuous integration builds, so it would nice if it could be fixed without having to disable that compiler argument
(Note
jitify.hpp(2861)
, shown at the bottom is an incorrect line number, the length ofjitify.hpp
confuses visual studio compiler for some reason, i previously looked into this and couldn't find an explicit cause beyond breaking the file up into smaller files corrects the line numbers.)The text was updated successfully, but these errors were encountered: