Skip to content

Instantly share code, notes, and snippets.

@imaami
Created July 13, 2020 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imaami/37105333c0d16210b2cac9d4032155aa to your computer and use it in GitHub Desktop.
Save imaami/37105333c0d16210b2cac9d4032155aa to your computer and use it in GitHub Desktop.
Installing CUDA Toolkit 10.2 in Wine without a GUI

Installing CUDA Toolkit 10.2 in Wine

Steps

  1. Set and export shell variables

    Use a helper variable for the prefix name:

    MYPREFIX=cudatest

    These are needed by winetricks and wine; they must be exported:

    export WINE_PREFIXES=/mnt/pfx
    export WINEARCH=win64
    export WINEPREFIX="$WINE_PREFIXES/$MYPREFIX"
  2. Create and configure a new wineprefix

    wineboot -i
    winetricks -q prefix=$MYPREFIX msxml3
    winetricks -q prefix=$MYPREFIX win10
  3. Download CUDA Toolkit 10.2 local installer

    wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_441.22_win10.exe
  4. Install CUDA Toolkit 10.2

    wineconsole cmd.exe /c cuda_10.2.89_441.22_win10.exe -s {cu{dart,objdump,pti},nv{cc,prune,disasm,prof,ml_dev},memcheck,{cu{blas,fft,rand,solver,sparse},nvgraph,npp,nvrtc}{,_dev}}_10.2

Relevant links

CUDA Toolkit 10.2 download page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment