Fix debug compilation with HIP#145
Conversation
…: avoid host/device function issues
|
|
Actually this only solves one of the instances of assert, which is enough for the current traccc alpaka hip implementation. If we don't want to replicate this ifdef across a lot of files we probably need a dedicated header e.g. |
Yes, I think such a header would be good, don't know what other peoples opinions are |
|
I haven't managed to provoke more of these errors in my tests: maybe we just go ahead with this and revisit if more instances are needed. |
Sorry for the late reply! Even if we use it only in one place, could we still put it in a dedicated header? I think that would make it both more readable and extendible in future. E.g. |



Add HIP runtime header for assert when compiling as a HIP source file: avoid host/device function issues.