diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-01-26 08:45:59 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-01-26 08:45:59 +0000 |
commit | 5d90704e5baf8009f73b2f4d9f4ac842ee266370 (patch) | |
tree | 3b3bf4ba224be3233337e088f221bafa601fdfce /vespalib | |
parent | 16b5b25f8c7512c122bb3e7c1cd5c412f8506c48 (diff) |
make test using onnxruntime internals optional
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/util/bfloat16/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vespalib/src/tests/util/bfloat16/CMakeLists.txt b/vespalib/src/tests/util/bfloat16/CMakeLists.txt index fe40bf72a14..fa5a8ae4fe2 100644 --- a/vespalib/src/tests/util/bfloat16/CMakeLists.txt +++ b/vespalib/src/tests/util/bfloat16/CMakeLists.txt @@ -1,4 +1,5 @@ # Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +if(EXISTS /opt/vespa-deps/include/onnxruntime/core/framework/endian.h) vespa_add_executable(vespalib_bfloat16_test_app TEST SOURCES bfloat16_test.cpp @@ -7,3 +8,4 @@ vespa_add_executable(vespalib_bfloat16_test_app TEST GTest::GTest ) vespa_add_test(NAME vespalib_bfloat16_test_app COMMAND vespalib_bfloat16_test_app) +endif() |