Skip to content

Commit

Permalink
add SOPT_ORT variable
Browse files Browse the repository at this point in the history
  • Loading branch information
20DM committed Jul 16, 2024
1 parent f635553 commit 465f8c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ jobs:
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}

#- name: Install Tensorflow API on Ubuntu
# # TODO could this be combined with mac version somehow? if/else?
# if: ${{ contains(matrix.os, 'ubuntu') }}
# uses: UCL/install-tensorflow-action@main
# with:
# version: 2.11.0
# os: linux

#- name: Install Tensorflow API on MacOS
# if: ${{ contains(matrix.os, 'macos') }}
# uses: UCL/install-tensorflow-action@main
# with:
# version: 2.11.0
# os: darwin

- name: Select Python 3.10
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion cmake_files/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ if(dompi)
if(NOT MPI_FOUND)
message(FATAL_ERROR "MPI was requested but could not be found")
endif()
set(SOPT_MPI ${MPI_FOUND})
endif()
set(SOPT_MPI ${MPI_FOUND})

set(SOPT_ORT FALSE)
if(onnxrt)
include(LookUpONNXRT)
set(SOPT_ORT ${onnxruntime_FOUND})
endif()
1 change: 1 addition & 0 deletions cmake_files/soptConfig.in.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ if(TARGET libsopt)
set(sopt_C_LIBRARY libsopt)
endif()
set(sopt_HAS_MPI @SOPT_MPI@)
set(sopt_HAS_ORT @SOPT_ORT@)

0 comments on commit 465f8c8

Please sign in to comment.