Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.