Skip to content

Commit

Permalink
Split buffer len tests to make them more granular
Browse files Browse the repository at this point in the history
This makes it clearer about which tests fail as the panic line is
not really usable because of the macro.
  • Loading branch information
syl20bnr committed Nov 23, 2024
1 parent 9370079 commit e1b293a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions crates/cubecl-core/src/runtime_tests/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,20 @@ macro_rules! testgen_metadata {
}

#[test]
fn test_buffer_len() {
fn test_buffer_len_discontiguous() {
let client = TestRuntime::client(&Default::default());
cubecl_core::runtime_tests::metadata::test_buffer_len_discontiguous::<TestRuntime>(client);
}

#[test]
fn test_buffer_len_vectorized() {
let client = TestRuntime::client(&Default::default());
cubecl_core::runtime_tests::metadata::test_buffer_len_vectorized::<TestRuntime>(client);
}

#[test]
fn test_buffer_len_offset() {
let client = TestRuntime::client(&Default::default());
cubecl_core::runtime_tests::metadata::test_buffer_len_discontiguous::<TestRuntime>(
client.clone(),
);
cubecl_core::runtime_tests::metadata::test_buffer_len_vectorized::<TestRuntime>(
client.clone(),
);
cubecl_core::runtime_tests::metadata::test_buffer_len_offset::<TestRuntime>(client);
}
};
Expand Down

0 comments on commit e1b293a

Please sign in to comment.