Skip to content

Commit

Permalink
guard tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rdspring1 committed Nov 2, 2024
1 parent d4f080d commit 3002112
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/cpp/test_matmul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3154,6 +3154,8 @@ TEST_P(MatmulTestWithLayout, AmpereMatmulBatchSplitKBias) {

// Avoid lowering error https://github.com/NVIDIA/Fuser/issues/1808
TEST_F(MatmulTest, ReproIssue1808) {
NVFUSER_TEST_CUDA_ARCH_RANGE_GUARD(8, 0, 9, 0);

// Keep multiples of 8 to keep vectorizable.
int M = 504, N = 136, K = 248;

Expand Down Expand Up @@ -3369,6 +3371,8 @@ TEST_P(MatmulTestWithLayout, MisalignedVectorization) {

// Matmul test with multiple M and N dimensions that are consecutive
TEST_F(MatmulTest, MultipleConsecutiveDims) {
NVFUSER_TEST_CUDA_ARCH_RANGE_GUARD(8, 0, 9, 0);

int M1 = 126, M2 = 4, N1 = 68, N2 = 2, K = 248;

Fusion fusion;
Expand Down Expand Up @@ -3559,6 +3563,8 @@ TEST_F(MatmulTest, DISABLED_MultipleNonConsecutiveNDims) {
// The batch dim is parallelized, so M1 and M2 are consecutive in shared
// memory.
TEST_F(MatmulTest, MultipleMDimsBatch) {
NVFUSER_TEST_CUDA_ARCH_RANGE_GUARD(7, 5, 9, 0);

int Batch = 2, M1 = 126, N = 136, M2 = 4, K = 248;

Fusion fusion;
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp/test_multidevice_matmul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ TEST_F(DistributedMatmulTest, MulSum_LayoutTN_NoComms) {
// MmaLayout::TN A(T), B(N), C(T)
// A and C are sharded on dimension M
// Tests local matmul with no communication
NVFUSER_TEST_CUDA_ARCH_RANGE_GUARD(8, 0, 10, 0);
NVFUSER_TEST_CUDA_ARCH_RANGE_GUARD(8, 0, 9, 0);
auto fusion = std::make_unique<Fusion>();
FusionGuard fg(fusion.get());
auto mesh = DeviceMesh::createForNumDevices(num_devices_);
Expand Down

0 comments on commit 3002112

Please sign in to comment.