Skip to content

Instantly share code, notes, and snippets.

@darallium
Created May 5, 2025 15:20
Show Gist options
  • Select an option

  • Save darallium/872d501b1ea7d444cabda99f16714616 to your computer and use it in GitHub Desktop.

Select an option

Save darallium/872d501b1ea7d444cabda99f16714616 to your computer and use it in GitHub Desktop.
どうやら最近のPythonライブラリ系でCUDAを強制するのは環境変数に対する依存がある模様
powershell.exe -NoExit -Command " $ENV:FORCE_CMAKE='1'; $ENV:CMAKE_ARGS='-DGGML_CUDA=on'; &{Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell 4a9b1b4f -SkipAutomaticLocation -DevCmdArguments """-arch=x64 -host_arch=x64"""}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment