Skip to content

Commit

Permalink
be consistent, either #if #elif or #if defined #elif defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaily committed Oct 9, 2023
1 parent 5bc0f95 commit 1251c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/test/contrib_ops/fft_op_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TEST(ContribOpTest, Rfft) {
std::vector<std::unique_ptr<IExecutionProvider>> execution_providers;
#ifdef USE_CUDA
execution_providers.push_back(DefaultCudaExecutionProvider());
#elif USE_ROCM
#elif defined(USE_ROCM)
execution_providers.push_back(DefaultRocmExecutionProvider());
#else
return;
Expand All @@ -31,7 +31,7 @@ TEST(ContribOpTest, Irfft) {
std::vector<std::unique_ptr<IExecutionProvider>> execution_providers;
#ifdef USE_CUDA
execution_providers.push_back(DefaultCudaExecutionProvider());
#elif USE_ROCM
#elif defined(USE_ROCM)
execution_providers.push_back(DefaultRocmExecutionProvider());
#else
return;
Expand Down

0 comments on commit 1251c46

Please sign in to comment.