-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from ewanwm/workflow_fix_benchmarking_CI
Workflow fix benchmarking ci
- Loading branch information
Showing
2 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,11 @@ enable_testing() | |
#### add dependencies #### | ||
########################## | ||
|
||
find_package(Torch REQUIRED) | ||
find_package(Protobuf REQUIRED) | ||
message("Torch cxx flags: ${TORCH_CXX_FLAGS}") | ||
set(CMAKE_CXX_FLAGS "-Wabi-tag ${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}") | ||
|
||
include(cmake/CPM.cmake) | ||
|
||
CPMAddPackage("gh:gabime/[email protected]") | ||
|
@@ -44,10 +49,6 @@ IF(NT_BUILD_TIMING) | |
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CMAKE_COMMAND} -E time") | ||
ENDIF() | ||
|
||
find_package(Torch REQUIRED) | ||
find_package(Protobuf REQUIRED) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}") | ||
|
||
|
||
###################################### | ||
#### Go configure the actual code #### | ||
|
@@ -73,4 +74,4 @@ foreach (_variableName ${_variableNames}) | |
endif() | ||
|
||
message(STATUS " ${_variableName}=${${_variableName}}") | ||
endforeach() | ||
endforeach() |