Skip to content

Commit

Permalink
Exclude blkq4_fp16_gemm_sm80_test in cuda 12.5 build (#21373)
Browse files Browse the repository at this point in the history
There is build errors when build with CUDA 12.5 and
`--cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=ON
onnxruntime_ENABLE_CUDA_EP_INTERNAL_TESTS=ON`.

Temporally exclude blkq4_fp16_gemm_sm80_test to unblock cuda 12.5 build.
  • Loading branch information
tianleiwu authored Jul 16, 2024
1 parent dcc0436 commit 760a31c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

#pragma once

#if defined(CUDA_VERSION) && CUDA_VERSION <= 12030
#include "test/cuda_host/blkq4_fp16_quant_sm80.h"

#include <random>
Expand Down Expand Up @@ -197,3 +197,4 @@ void run_blkq4_small_gemm(int m, int n, int k);
} // namespace test
} // namespace cuda
} // namespace onnxruntime
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* This part requires gtest header files, which do not play
* well with CUTLASS headers.
*/

#if defined(CUDA_VERSION) && CUDA_VERSION <= 12030
#include "blkq4_fp16_gemm_sm80.h"

#include "gtest/gtest.h"
Expand Down Expand Up @@ -341,3 +341,4 @@ TEST(BlkQ4_GEMM, Sm80SmallTileKernelTest) {

} // namespace test
} // namespace onnxruntime
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* well with gtest headers.
*/

// This test has build error with cuda 12.5
#if defined(CUDA_VERSION) && CUDA_VERSION <= 12030

#include "blkq4_fp16_gemm_sm80.h"

#include <random>
Expand Down Expand Up @@ -532,3 +535,5 @@ template void run_blkq4_small_gemm<128, false, false>(int m, int n, int k);
} // namespace test
} // namespace cuda
} // namespace onnxruntime

#endif

0 comments on commit 760a31c

Please sign in to comment.