Skip to content

Commit

Permalink
Add cast to fix cuda compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lightvector committed Aug 4, 2024
1 parent a043874 commit 6a0c33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/neuralnet/cudabackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2237,7 +2237,7 @@ struct Buffers {
CUDA_ERR("Buffers",cudaMalloc(reinterpret_cast<void**>(&inputGlobalBufFloat), inputGlobalBufBytesFloat));
CUDA_ERR("Buffers",cudaMalloc(&inputGlobalBuf, inputGlobalBufBytes));
if(m.numInputMetaChannels > 0) {
CUDA_ERR("Buffers",cudaMalloc(&inputMetaBufFloat, inputMetaBufBytesFloat));
CUDA_ERR("Buffers",cudaMalloc(reinterpret_cast<void**>(&inputMetaBufFloat), inputMetaBufBytesFloat));
CUDA_ERR("Buffers",cudaMalloc(&inputMetaBuf, inputMetaBufBytes));
}
else {
Expand Down

0 comments on commit 6a0c33d

Please sign in to comment.