cmake,src: Handle format warnings by stotko · Pull Request #29 · stotko/stdgpu (original) (raw)

In device code, we use printf to display warnings and errors to the user. However, as indices might be 32-bit or 64-bit depending on the configuration, this may lead to warnings at compile time. Since CUDA only supports printf in device code, suppress the warnings for now.

In the future, the new std::format (C++20) will solve the issue. However, we need to wait until the support is sufficient.