if i write a Lib that contains CUDA code and i use a global symbol in it:
device __constant struct ABC;
And in the host part i use:
cudaMemcpyToSymbol(“ABC”, &host_ABC, sizeof(struct ABC), 0, cudaMemcpyHostToDevice);
If that Lib has several users (e.g. a multi-user system, or several processes using that Lib), could it happen that they all work on the same memory location?
Or is it made sure that each use / instantiation of the Lib has its own location in the device? I guess it must be like this, i just want to make sure, i didn’t find any documentation about it.
Thanks for any hints,