crafter-build V2

This commit is contained in:
Jorijn van der Graaf 2026-04-29 19:01:52 +02:00
commit ec3edbb3d7
4 changed files with 61 additions and 78 deletions

View file

@ -598,16 +598,14 @@ std::string* TestAllCombinations() {
}
}
extern "C" {
std::string* RunTest() {
std::string* err = TestAllCombinations<_Float16, VectorF16, VectorF16<1, 1>::MaxElement>();
if (err) {
return err;
}
err = TestAllCombinations<float, VectorF32, VectorF32<1, 1>::MaxElement>();
if (err) {
return err;
}
return nullptr;
int main() {
if (auto err = std::unique_ptr<std::string>(TestAllCombinations<_Float16, VectorF16, VectorF16<1, 1>::MaxElement>())) {
std::println(std::cerr, "{}", *err);
return 1;
}
if (auto err = std::unique_ptr<std::string>(TestAllCombinations<float, VectorF32, VectorF32<1, 1>::MaxElement>())) {
std::println(std::cerr, "{}", *err);
return 1;
}
return 0;
}