crafter-build V2
This commit is contained in:
parent
e4bfc0ff19
commit
ec3edbb3d7
4 changed files with 61 additions and 78 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue