https://github.com/jamriska/ebsynthから実行ファイルを作る
実行ファイルかダウンロードできなくなっているので作ってみます
複数ファイルは対応していません
準備
CUDA Toolkit – Free Tools and Training | NVIDIA Developer
https://visualstudio.microsoft.com/ja/visual-cpp-build-tools
やり方
git clone https://github.com/jamriska/ebsynthバッチファイルを修正
@echo off
setlocal ENABLEDELAYEDEXPANSION
::call "vcvarsall.bat" amd64
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
nvcc -arch compute_80 src\ebsynth.cpp src\ebsynth_cpu.cpp src\ebsynth_cuda.cu -DNDEBUG -O6 -I "include" -o "bin\ebsynth.exe" -Xcompiler "/openmp /fp:fast" -Xlinker "/IMPLIB:dummy.lib" -w || goto error
nvcc -arch compute_80 src\ebsynth.cpp src\ebsynth_cpu.cpp src\ebsynth_cuda.cu -DNDEBUG -O6 -I "include" -o "bin\ebsynth.dll" -Xcompiler "/openmp /fp:fast" -Xlinker "/IMPLIB:lib\ebsynth.lib" -shared -DEBSYNTH_API=__declspec(dllexport) -w || goto error
del dummy.lib;dummy.exp 2> NUL
goto :EOF
:error
echo FAILED
@%COMSPEC% /C exit 1 >nul
build-win64-cpu+cuda.bat実行するとebsynth\bin\ebsynth.exe










ディスカッション
コメント一覧
まだ、コメントがありません