Skip to content

Commit

Permalink
Fix skipping dwio decode tests when there are no GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
luhenry committed Apr 11, 2024
1 parent a86dce5 commit 5c3780e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions velox/experimental/wave/dwio/decode/tests/GpuDecoderTest.cu
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ void makeBitpackDict(
class GpuDecoderTest : public ::testing::Test {
protected:
void SetUp() override {
if (int device; cudaGetDevice(&device) != cudaSuccess) {
GTEST_SKIP() << "No CUDA detected, skipping all tests";
}

CUDA_CHECK_FATAL(cudaEventCreate(&startEvent_));
CUDA_CHECK_FATAL(cudaEventCreate(&stopEvent_));
}
Expand Down

0 comments on commit 5c3780e

Please sign in to comment.