Skip to content

Commit

Permalink
use venv for Tensile create on Linux (#2022) (#2025)
Browse files Browse the repository at this point in the history
* use venv if vars set TensileCreateLibraryFiles on Linux to match Windows

(cherry picked from commit 7dbd723)
  • Loading branch information
TorreZuk authored Sep 17, 2024
1 parent 000e503 commit aca95d1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Tensile/cmake/TensileConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ function(TensileCreateLibraryFiles
set(Options ${Options} "--architecture=${archString}")
endif()

if (WIN32)
set(CommandLine ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} ${Script} ${Options} ${Tensile_LOGIC_PATH} ${Tensile_OUTPUT_PATH} HIP)
else()
set(CommandLine ${Script} ${Options} ${Tensile_LOGIC_PATH} ${Tensile_OUTPUT_PATH} HIP)
set(CommandLine ${Script} ${Options} ${Tensile_LOGIC_PATH} ${Tensile_OUTPUT_PATH} HIP)
if (WIN32 OR (VIRTUALENV_BIN_DIR AND VIRTUALENV_PYTHON_EXENAME))
set(CommandLine ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} ${CommandLine})
endif()
message(STATUS "Tensile_CREATE_COMMAND: ${CommandLine}")

Expand Down

0 comments on commit aca95d1

Please sign in to comment.