Skip to content

Instantly share code, notes, and snippets.

@gjpicker
Created November 30, 2018 06:10
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 gjpicker/004f58a1cee86cc4bfa144334e044f41 to your computer and use it in GitHub Desktop.
Save gjpicker/004f58a1cee86cc4bfa144334e044f41 to your computer and use it in GitHub Desktop.
pytorch ELF install in GCC 4.8

#step1 install gcc8.1 follow this site install_gcc8.1 #step 2 follow ELF offical install instruction ,stop before "make"

#step 3 export some env info


export CC="/home/username/install_path/gcc_8.1/bin/gcc  -Wno-cast-function-type "

export CXX="/home/username/install_path/gcc_8.1/bin/g++ -Wno-cast-function-type  "

export CPP="/home/username/install_path/gcc_8.1/bin/g++  -Wno-cast-function-type "

#step4 make ..go continue follow offical guide

#ref https://github.com/pytorch/ELF

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