Skip to content

Commit

Permalink
Merge pull request #1316 from kbenzie/benie/cuda-image-fix-uninit
Browse files Browse the repository at this point in the history
[CUDA] Always initialized AddrMode array
  • Loading branch information
wlemkows committed Feb 8, 2024
2 parents ceba4a5 + 9605cf1 commit 3be8f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/cuda/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ ur_result_t urTextureCreate(ur_sampler_handle_t hSampler,
/// | 1 | filter mode
/// | 0 | normalize coords
CUDA_TEXTURE_DESC ImageTexDesc = {};
CUaddress_mode AddrMode[3];
CUaddress_mode AddrMode[3] = {};
for (size_t i = 0; i < 3; i++) {
ur_sampler_addressing_mode_t AddrModeProp =
hSampler->getAddressingModeDim(i);
Expand Down

0 comments on commit 3be8f20

Please sign in to comment.