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 1251c46 commit 6686321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/test/contrib_ops/greedy_search_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ TEST(GreedySearchTest, GptGreedySearchFp16_VocabPadded) {
Ort::SessionOptions session_options;
#ifdef USE_CUDA
Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_CUDA(session_options, 0));
#elif USE_ROCM
#elif defined(USE_ROCM)
Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_ROCM(session_options, 0));
#endif

Expand Down Expand Up @@ -130,7 +130,7 @@ TEST(GreedySearchTest, GptGreedySearchFp32) {
Ort::SessionOptions session_options;
#ifdef USE_CUDA
Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_CUDA(session_options, 0));
#elif USE_ROCM
#elif defined(USE_ROCM)
Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_ROCM(session_options, 0));
#endif

Expand Down

0 comments on commit 6686321

Please sign in to comment.