Initialise workFn to zero explicitly
It may be implicitly zero initialised by some toolchains.
This change would remove an out of tree patch for amdgcn.
Differential D68367
Initialise workFn to zero explicitly JonChesterfield on Oct 2 2019, 6:15 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions Tiny change ofc. I'm looking through the diff between in tree nvptx and out of tree amdgcn and this stuck out. Comment Actions I think it needs to be initialized to zero to handle the case where there is no work, though I'm not the original author of the patch. Iirc cuda/nvcc will implicitly zero initialize this and hip/clang does not. Comment Actions cuda does not initialize it to zero. If there is no work, __kmpc_kernel_deinit will set it to 0 and terminate the workers. |