Skip to content

Commit e0d639c

Browse files
committed
add a dummy main
1 parent 8b88a41 commit e0d639c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

triton/test/check_triton.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,13 @@ int main() {
7272
}
7373
return 0;
7474
}
75+
76+
#else
77+
78+
#include <iostream>
79+
int main() {
80+
std::cerr << "This test requires libtorch support. Skipping.\n";
81+
return 0;
82+
}
83+
7584
#endif // HAVE_LIBTORCH

triton/test/test_triton_inference.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,12 @@ int main() {
162162
return 0;
163163
}
164164

165+
#else
166+
167+
#include <iostream>
168+
int main() {
169+
std::cerr << "This test requires libtorch support. Skipping.\n";
170+
return 0;
171+
}
172+
165173
#endif // HAVE_LIBTORCH

0 commit comments

Comments
 (0)