I am trying to use the MTGP32 generator as explained in https://docs.nvidia.com/cuda/curand/device-api-overview.html#device-api-example . However, by including curand_mtgp32dc_p_11213.h in different compilation units, the linker is not happy about the multiple definitions of mtgp32dc_params_fast_11213 and mtgpdc_params_11213_num.
Is it an expected behavior?
Looking on how the header is implemented, these two variables are declared and defined in header files and they are not inlined, which makes the reaction of the linker normal. How to solve this problem?
Thanks for your help.