-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
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
Always enable nlohmann_json with examples #1727
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find_package should ideally always happen on the topmost level, so that we don't look for different configurations accidentally. I would suggest moving the call to the root CMakeLists.txt. Is there a downside to always pulling in the dependency? I would like to avoid too many fragmented possible configurations depending on small environment differences.
+ It depends on nlohmann-json
49aba31
to
600417b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
foreach(executor IN LISTS executors) | ||
add_test(NAME example_file-config-solver_${config_name}_${executor} | ||
COMMAND | ||
"$<TARGET_FILE:file-config-solver>" | ||
"${executor}" "${CMAKE_CURRENT_SOURCE_DIR}/file-config-solver/config/${config_name}.json" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/file-config-solver/data/A.mtx" | ||
WORKING_DIRECTORY | ||
"$<TARGET_FILE_DIR:ginkgo>") | ||
add_test(NAME example_file-config-solver_${config_name}_${executor} | ||
COMMAND | ||
"$<TARGET_FILE:file-config-solver>" | ||
"${executor}" "${CMAKE_CURRENT_SOURCE_DIR}/file-config-solver/config/${config_name}.json" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/file-config-solver/data/A.mtx" | ||
WORKING_DIRECTORY | ||
"$<TARGET_FILE_DIR:ginkgo>") | ||
# Prevent performance issues with high core counts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't actually change anything, right? I would just revert it then for a cleaner diff
Enable the file-config example conditionally, as it depends on nlohmann-json.