Skip to content

Commit

Permalink
EC/CUDA: remove unused macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei-Lebedev committed Sep 21, 2023
1 parent 398413e commit 1966002
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/components/ec/cuda/ec_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,4 @@ extern ucc_ec_cuda_t ucc_ec_cuda;
#define EC_CUDA_CONFIG \
(ucc_derived_of(ucc_ec_cuda.super.config, ucc_ec_cuda_config_t))

#define UCC_EC_CUDA_INIT_STREAM() do { \
if (!ucc_ec_cuda.stream_initialized) { \
cudaError_t cuda_st = cudaSuccess; \
ucc_spin_lock(&ucc_ec_cuda.init_spinlock); \
if (!ucc_ec_cuda.stream_initialized) { \
cuda_st = cudaStreamCreateWithFlags(&ucc_ec_cuda.stream, \
cudaStreamNonBlocking); \
ucc_ec_cuda.stream_initialized = 1; \
} \
ucc_spin_unlock(&ucc_ec_cuda.init_spinlock); \
if (ucc_unlikely(cudaSuccess != cuda_st)) { \
return cuda_error_to_ucc_status(cuda_st); \
} \
} \
} while(0)

#endif

0 comments on commit 1966002

Please sign in to comment.