Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions triton_npu/test/triton_causal_conv1d_update_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -253,6 +254,7 @@ TEST_F(TritonCausalConv1dUpdateTest, MultiBatchTest) {

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_causal_conv1d_update_v2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -511,5 +512,6 @@ TEST_F(TritonCausalConv1dUpdateV2Test, VarlenPadWidth5Test) {

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();
return RUN_ALL_TESTS();
}
2 changes: 2 additions & 0 deletions triton_npu/test/triton_chunk_gated_delta_rule_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -603,6 +604,7 @@ INSTANTIATE_TEST_SUITE_P(

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_fused_gdn_gating_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -166,6 +167,7 @@ TEST_F(TritonFusedGdnGatingTest, DecodeKernelTest) {

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_fused_qkvzba_split_reshape_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -283,6 +284,7 @@ INSTANTIATE_TEST_SUITE_P(

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_l2norm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"

namespace xllm::kernel::npu {
Expand Down Expand Up @@ -130,6 +131,7 @@ INSTANTIATE_TEST_SUITE_P(

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_layernorm_fwd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -341,6 +342,7 @@ TEST_F(TritonLayerNormFwdTest, KernelTestFastRMSBF16ZNoBiasNoMask) {

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_recurrent_gated_delta_rule_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -570,6 +571,7 @@ TEST_F(TritonRecurrentGatedDeltaRuleTest, SpecAccuracyTp4LocalShape) {

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_rope_inplace_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -200,6 +201,7 @@ INSTANTIATE_TEST_SUITE_P(RopeInplaceParams,

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();

bool npu_available = false;
std::string device_str =
Expand Down
2 changes: 2 additions & 0 deletions triton_npu/test/triton_split_rmsnorm_rope_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "kernel_registry.h"
#include "test/test_utils.h"
#include "tests/npu_test_environment.h"
#include "torch_api/triton_ops_api.h"
#include "torch_npu/csrc/core/npu/NPUCachingAllocator.h"

Expand Down Expand Up @@ -262,6 +263,7 @@ TEST_F(TritonSplitRmsnormRopeTest, RandomInputMatchesCpuReference) {

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
xllm::testing::init_npu_test_runtime();
return RUN_ALL_TESTS();
}