You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building on Windows should not require that specific toolchain file though, and the custom PYTHON3_EXE variable could be avoided entirely by using the already available Python3_EXECUTABLE variable.
This is also still not behaving as it should even on Linux, since it ignores the results of the find_package call that might be pointing at a virtual environment or some other explicit Python executable instead of whatever the system resolves python3 to.
Operating System
N/A
CPU
N/A
GPU
N/A
ROCm Version
N/A
ROCm Component
rocFFT
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
I don't really buy the "look for python development files - we also require an interpreter but the version of it needn't match the development version." argument, as Python in CMake doesn't necessarily work that way.
The more recent df3b5c1 only looks for Interpreter and not Development anyways, though the result of the search is ignored
Hi @ScottTodd, thanks for bringing this up. We have an internal PR addressing these concerns which should make it's way into the develop branch shortly.
Problem Description
The setup code and example usage here does not follow recommended practices and is not reliably portable across systems:
rocFFT/library/src/CMakeLists.txt
Lines 85 to 89 in b99dad4
rocFFT/library/src/CMakeLists.txt
Lines 189 to 194 in b99dad4
See the official documentation here: https://cmake.org/cmake/help/latest/module/FindPython3.html. After calling
find_package(Python3 COMPONENTS Interpreter)
, the result variablePython3_EXECUTABLE
should be used.This only happens to work on Windows (where the executable for Python 3 is simply
python.exe
) today because of a workaround in the toolchain file:rocFFT/toolchain-windows.cmake
Line 59 in b99dad4
Building on Windows should not require that specific toolchain file though, and the custom
PYTHON3_EXE
variable could be avoided entirely by using the already availablePython3_EXECUTABLE
variable.This is also still not behaving as it should even on Linux, since it ignores the results of the
find_package
call that might be pointing at a virtual environment or some other explicit Python executable instead of whatever the system resolvespython3
to.Operating System
N/A
CPU
N/A
GPU
N/A
ROCm Version
N/A
ROCm Component
rocFFT
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
The code here seems to have originated in 5c8e3e3
Interpreter
and notDevelopment
anyways, though the result of the search is ignoredI sent a patch for this downstream in TheRock: ROCm/TheRock#189
The text was updated successfully, but these errors were encountered: