All Projects → phohenecker → Switch Cuda

phohenecker / Switch Cuda

Licence: mit
A simple bash script for switching between installed versions of CUDA.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Switch Cuda

Cloudflare Api V4 Ddns
Cloudflare API v4 Dynamic DNS Update in Bash
Stars: ✭ 124 (-33.33%)
Mutual labels:  bash-script
Mac admin
Helpful scripts & configuration profiles for the Mac admin community
Stars: ✭ 139 (-25.27%)
Mutual labels:  bash-script
Partyloud
A simple tool to generate fake web browsing and mitigate tracking
Stars: ✭ 170 (-8.6%)
Mutual labels:  bash-script
Epsxe64ubuntu
Install ePSXe Linux (x64) & shaders using BIOS HLE and Core Plugins on x86-64 Debian, Ubuntu, Linux Mint and their derivatives.
Stars: ✭ 130 (-30.11%)
Mutual labels:  bash-script
Lazydroid
bash script to facilitate some aspects of an Android application assessment
Stars: ✭ 134 (-27.96%)
Mutual labels:  bash-script
Imgur.sh
Bart's Imgur uploader bash script
Stars: ✭ 145 (-22.04%)
Mutual labels:  bash-script
Spring Boot Blog
Simple blog web app made using Spring Boot + Thymeleaf
Stars: ✭ 121 (-34.95%)
Mutual labels:  bash-script
Cypheroth
Automated, extensible toolset that runs cypher queries against Bloodhound's Neo4j backend and saves output to spreadsheets.
Stars: ✭ 179 (-3.76%)
Mutual labels:  bash-script
Relayer
SMB Relay Attack Script
Stars: ✭ 136 (-26.88%)
Mutual labels:  bash-script
Firemotd
🔥 Fire Framework Linux MoTD Generator 🔥
Stars: ✭ 156 (-16.13%)
Mutual labels:  bash-script
Freenom Script
Freenom.com Domain Renewal and Dynamic DNS script
Stars: ✭ 131 (-29.57%)
Mutual labels:  bash-script
Homura
Windows Games Launcher for FreeBSD 🎮
Stars: ✭ 134 (-27.96%)
Mutual labels:  bash-script
M Wiz
Install Metasploit And Repair Metasploit In Termux With Easy Steps
Stars: ✭ 148 (-20.43%)
Mutual labels:  bash-script
Introduction To Bash Scripting
Free Introduction to Bash Scripting eBook
Stars: ✭ 1,903 (+923.12%)
Mutual labels:  bash-script
Wifi Txpower Unlocker
Stars: ✭ 173 (-6.99%)
Mutual labels:  bash-script
Fancy Git
That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among 13 styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)
Stars: ✭ 123 (-33.87%)
Mutual labels:  bash-script
Mida Multitool
Bash script purposed for system enumeration, vulnerability identification and privilege escalation.
Stars: ✭ 144 (-22.58%)
Mutual labels:  bash-script
Garud
An automation tool that scans sub-domains, sub-domain takeover, then filters out XSS, SSTI, SSRF, and more injection point parameters and scans for some low hanging vulnerabilities automatically.
Stars: ✭ 183 (-1.61%)
Mutual labels:  bash-script
Guacamole Install Rhel 7
Apache Guacamole installation bash script for RHEL 7 and CentOS 7 including options for Nginx, HTTPS, SSL, LDAP, Let's Encrypt certificates and more
Stars: ✭ 174 (-6.45%)
Mutual labels:  bash-script
Flash Chip
Ready to use Flash environment for the C.H.I.P Single Board Computer
Stars: ✭ 152 (-18.28%)
Mutual labels:  bash-script

switch-cuda

Sometimes, it becomes necessary to switch to an earlier version of CUDA in order to run older code on a machine that is actually set up to use the current version of the CUDA toolkit. This is as simple as adjusting the values of a few environment variables, yet it is cumbersome to do manually. Therefore, this repository provides the bash script switch-cuda.sh, which adjusts the environment to use a specific version of CUDA for the current bash session.

Notice: switch-cuda.sh has been written for and tested on Ubuntu 16.04, but is easily adapted for other platforms.

Usage

source switch-cuda.sh [VERSION]

Notice that the script has to be sourced rather than executed, as it performs changes of environment variables that are supposed to persist after the script has finished. If a version number is provided, than all relevant environment variables are adjusted to the required CUDA version (including PATH, LD_LIBRARY_PATH, CUDA_HOME, and CUDA_ROOT). If no version is provided, however, then the script simply prints all versions of CUDA that have been found on the used machine (in /usr/local).

Examples

$ source switch-cuda.sh 
The following CUDA installations have been found (in '/usr/local'):
* cuda-8.0
* cuda-9.0
* cuda-9.1
$ source switch-cuda.sh 9.0
Switched to CUDA 9.0.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].