Skip to content

Commit 3952300

Browse files
authored
Merge pull request #74 from stephenswat/fix/cuda_texture_nullptr
Explicitly set CUDA texture array pointer to null
2 parents 368bc7b + 5142631 commit 3952300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cuda/covfie/cuda/backend/primitive/cuda_texture.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ struct cuda_texture {
324324
throw std::invalid_argument("Cannot perform IO on texture memory.");
325325
}
326326

327-
cudaArray_t m_array;
327+
cudaArray_t m_array = nullptr;
328328
std::optional<cudaTextureObject_t> m_tex;
329329
};
330330

0 commit comments

Comments
 (0)