Skip to content

Commit 30f7df1

Browse files
angtCISC
andauthored
cuda : warnings cleanup (ggml-org#30420)
* cuda : warnings cleanup Signed-off-by: Adrien Gallouët <angt@huggingface.co> * Update ggml/src/ggml-cuda/common.cuh Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co> --------- Signed-off-by: Adrien Gallouët <angt@huggingface.co> Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
1 parent 9d7d504 commit 30f7df1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎ggml/src/ggml-cuda/common.cuh‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ static __device__ __forceinline__ uint8_t ggml_cuda_fp32_to_ue4m3(float x) {
881881
const __nv_fp8_e4m3 xf(x);
882882
return xf.__x;
883883
#else
884+
GGML_UNUSED(x);
884885
NO_DEVICE_CODE; // Used only for NVFP4 Scales for Activations, only for Blackwell
885886
#endif // defined(BLACKWELL_MMA_AVAILABLE)
886887
}
@@ -1448,10 +1449,10 @@ struct ggml_backend_cuda_context {
14481449
std::string name;
14491450
cudaEvent_t copy_event = nullptr;
14501451

1451-
cudaStream_t streams[GGML_CUDA_MAX_DEVICES][GGML_CUDA_MAX_STREAMS] = { { nullptr } };
1452-
cublasHandle_t cublas_handles[GGML_CUDA_MAX_DEVICES][GGML_CUDA_MAX_STREAMS] = {nullptr};
1453-
void * cublas_workspaces[GGML_CUDA_MAX_DEVICES][GGML_CUDA_MAX_STREAMS] = {nullptr};
1454-
size_t cublas_workspace_sizes[GGML_CUDA_MAX_DEVICES] = {0};
1452+
cudaStream_t streams[GGML_CUDA_MAX_DEVICES][GGML_CUDA_MAX_STREAMS] = {};
1453+
cublasHandle_t cublas_handles[GGML_CUDA_MAX_DEVICES][GGML_CUDA_MAX_STREAMS] = {};
1454+
void * cublas_workspaces[GGML_CUDA_MAX_DEVICES][GGML_CUDA_MAX_STREAMS] = {};
1455+
size_t cublas_workspace_sizes[GGML_CUDA_MAX_DEVICES] = {};
14551456

14561457
int curr_stream_no = 0;
14571458

0 commit comments

Comments
 (0)