#9475 adds free threading support to cuda.compute. A recent hostjit PR for windows support #9502 adds the -fno-threadsafe-statics flag on windows which could lead to race conditions
We need to audit the code in CUB for locations where this could be an issue.
One instance where this could be harmful is cached static variables
|
static int count = DeviceCountUncached(); |
This issue can be closed with a list of all locations where we use static variables that could lead to race conditions and either PRs adding a fix or reasoning as to why this is not an issue
#9475 adds free threading support to cuda.compute. A recent hostjit PR for windows support #9502 adds the
-fno-threadsafe-staticsflag on windows which could lead to race conditionsWe need to audit the code in CUB for locations where this could be an issue.
One instance where this could be harmful is cached static variables
cccl/cub/cub/util_device.cuh
Line 128 in f528e0e
This issue can be closed with a list of all locations where we use static variables that could lead to race conditions and either PRs adding a fix or reasoning as to why this is not an issue