Skip to content

Ensure that there are no race conditions with static variables with cccl.c v2 on windows #9545

Description

@NaderAlAwar

#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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions