-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CUDA can be found, however build is failing because multiple CUDA include paths from diff versions being used at build time
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,38 @@ | ||
"%PYTHON%" -m pip install "pyflamegpu-2.0.0rc1+cuda122-cp38-cp38-linux_x86_64.whl" | ||
:: Enable output of commands executed to make script debugging easier. | ||
@echo on | ||
setlocal enabledelayedexpansion | ||
|
||
:: Setup user config | ||
set "build_threads=%FLAMEGPU_CONDA_BUILD_THREADS%" | ||
if "%build_threads%" == "" set "build_threads=1" | ||
|
||
set "build_arch=" | ||
if not "%FLAMEGPU_CONDA_CUDA_ARCHITECTURES%" == "" ( | ||
set "build_arch=-DCMAKE_CUDA_ARCHITECTURES=%FLAMEGPU_CONDA_CUDA_ARCHITECTURES%" | ||
) | ||
|
||
mkdir build 2>nul | ||
cd build | ||
|
||
cmake .. -DFLAMEGPU_BUILD_PYTHON=ON -DFLAMEGPU_BUILD_PYTHON_VENV=OFF -DFLAMEGPU_BUILD_ALL_EXAMPLES=OFF -DFLAMEGPU_BUILD_PYTHON_CONDA=ON %build_arch% %CMAKE_ARGS% -DPython3_FIND_VIRTUALENV=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH -DPython3_ROOT_DIR="%BUILD_PREFIX%" -DPython3_EXECUTABLE="%PYTHON%" | ||
:: -DCUDAToolkit_ROOT="%CUDA_PATH%" | ||
if errorlevel 1 exit /b 1 | ||
|
||
:: Build Python wheel | ||
cmake --build . --config Release --target pyflamegpu --parallel %build_threads% | ||
if errorlevel 1 exit /b 1 | ||
|
||
:: Install built wheel | ||
for /r "lib\Release\python\dist" %%f in (pyflamegpu*.whl) do ( | ||
set "pyfgpu_wheel=%%~f" | ||
goto :found_pyfgpu_wheel | ||
) | ||
|
||
:found_pyfgpu_wheel | ||
%PYTHON% -m pip install --no-deps %pyfgpu_wheel% | ||
|
||
:: Cleanup | ||
cd .. | ||
rmdir /s /q build | ||
|
||
if errorlevel 1 exit 1 |
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