Skip to content

Conversation

@bredelings
Copy link
Contributor

@bredelings bredelings commented Aug 19, 2025

These tests ensure that beagle builds on Linux, Mac, and Windows, and can run the tests in examples.

This requires tweaking the CMakeLists.txt file in a few places to ensure that (for example):

  • it is possible to set -DCMAKE_BUILD_TYPE=Debug
  • -O3 isn't added when the build type is Debug
  • running ./examples/hmctest can find the plugins on Linux
  • JNI plugins aren't built on windows if the JNI headers are not found
  • windows-style /Ox options are not used with GCC on windows

Hopefully these should make debugging easier as well. Future work on this could include:

  • checking the output for examples/hmctest
  • tests/run_tests.sh
  • tests with -fsanitize=address to catch any memory bugs
  • (?) output for BEAST on some XML files
  • add native windows builds

We need to be searching relative to the location of libhmsbeagle.so

When using libhmsbeagle.so in the build directory, we need to explicitly
search the CPU, GPU, and JNI subdirs.
Exception specifications were deprecated in C++11 and removed in C++17.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant