Skip to content

Commit 6a0c33d

Browse files
committed
Add cast to fix cuda compile issue
1 parent a043874 commit 6a0c33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/neuralnet/cudabackend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ struct Buffers {
22372237
CUDA_ERR("Buffers",cudaMalloc(reinterpret_cast<void**>(&inputGlobalBufFloat), inputGlobalBufBytesFloat));
22382238
CUDA_ERR("Buffers",cudaMalloc(&inputGlobalBuf, inputGlobalBufBytes));
22392239
if(m.numInputMetaChannels > 0) {
2240-
CUDA_ERR("Buffers",cudaMalloc(&inputMetaBufFloat, inputMetaBufBytesFloat));
2240+
CUDA_ERR("Buffers",cudaMalloc(reinterpret_cast<void**>(&inputMetaBufFloat), inputMetaBufBytesFloat));
22412241
CUDA_ERR("Buffers",cudaMalloc(&inputMetaBuf, inputMetaBufBytes));
22422242
}
22432243
else {

0 commit comments

Comments
 (0)