Skip to content

Instantly share code, notes, and snippets.

@ptheywood
Last active May 26, 2017 15:19
Show Gist options
  • Save ptheywood/0a73ebb170731f46f0efdfb60fa5d78d to your computer and use it in GitHub Desktop.
Save ptheywood/0a73ebb170731f46f0efdfb60fa5d78d to your computer and use it in GitHub Desktop.
find ./examples -type f -name "*.vcxproj" -exec sed -i 's/ToolsVersion="12.0"/ToolsVersion="14.0"/g' {} +
find ./examples -type f -name "*.vcxproj" -exec sed -i 's/<PlatformToolset>v120<\/PlatformToolset>/<PlatformToolset>v140<\/PlatformToolset>/g' {} +
find ./examples -type f -name "*.vcxproj" -exec sed -i 's/CUDA 7.0./CUDA 8.0./g' {} +
find ./examples -type f -name "*.vcxproj" -exec sed -i 's/compute_20,sm_20;compute_30,sm_30;compute_35,sm_35;compute_50,sm_50/compute_30,sm_30;compute_35,sm_35;compute_50,sm_50;compute_60,sm_60/g' {} +
find ./examples -type f -name "Makefile" -exec sed -i 's/cuda-7.5/cuda-8.0/g' {} +
find ./examples -type f -name "Makefile" -exec sed -i 's/20 30 35 37 50 52/30 35 37 50 60/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment