We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The README has instructions on running pytest...
pip install absl-py pytest pytest --pyargs ml_dtypes
It would also be useful for contributors to indicate how to correctly run ./ml_dtypes/tests/float8_test.cc
./ml_dtypes/tests/float8_test.cc
The text was updated successfully, but these errors were encountered:
In case useful for others, this is a lightly-tested and hacky, but functional solution:
ml_dtypes/tests
$ cd ml_dtypes/tests $ git clone https://github.com/abseil/abseil-cpp.git
float8_test.cc
#include <gmock/gmock.h> #include <gtest/gtest.h> - #include "third_party/absl/strings/str_cat.h" + #include "absl/strings/str_cat.h" #include "unsupported/Eigen/CXX11/Tensor"
CMakeLists.txt
cmake_minimum_required(VERSION 3.14) project(my_project) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(GOOGLETEST_DOWNLOAD_URL https://github.com/google/googletest/archive/refs/tags/v1.12.0.zip) include(FetchContent) FetchContent_Declare( googletest URL ${GOOGLETEST_DOWNLOAD_URL} ) # For Windows: Prevent overriding the parent project's compiler/linker settings set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) set(ABSL_PROPAGATE_CXX_STD ON) set(ABSL_GOOGLETEST_DOWNLOAD_URL ${GOOGLETEST_DOWNLOAD_URL}) add_subdirectory(abseil-cpp) enable_testing() add_executable( float8_test float8_test.cc ) target_include_directories(float8_test PUBLIC .. ../../third_party/eigen ) target_link_libraries( float8_test GTest::gtest_main GTest::gmock_main absl::strings ) include(GoogleTest) gtest_discover_tests(float8_test)
cmake -S . -B build cmake --build build (cd build && ctest)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The README has instructions on running pytest...
It would also be useful for contributors to indicate how to correctly run
./ml_dtypes/tests/float8_test.cc
The text was updated successfully, but these errors were encountered: