Skip to content

Instantly share code, notes, and snippets.

View mcotton's full-sized avatar

Mark Cotton mcotton

View GitHub Profile
@mcotton
mcotton / Install_Tensforflow2_with_GPU_in_Ubuntu20.04.md
Created May 24, 2023 14:23 — forked from raulqf/Install Tensorflow2 with GPU - Ubuntu 24.04.md
How to install Tensorflow2 with GPU support in Ubuntu 20.04

How to install Tensorflow2 with GPU support in Ubuntu 20.04

Installation of Tensorflow2 with GPU support is easy and the only complication can be arisen from the CUDA compability which in turns depends on the Nvidia driver version. Before going farther, please check if your Nvidia Video Card is compatible with the required versions that are defined in this gist, use this link.

Tensorflow offers in its website a table of the compatibility between libraries for the target OS. You can visit that website in the following COMPATIBILITY TABLE that points to the Tensorflow installation from source for linux. For the time writing this gist, Tensorflow2 v2.5.0 requires CUDA v11.2 and CUDNN v8.2. It is really important to match the exact version, otherwise tensorflow will have problems loading the shared libraries as not finding the correct version.

CUDA version also requires for a minimum Nvidia driver version

#!bin/bash
mkdir /mnt/cdrom
mount -r /dev/cdrom /mnt/cdrom
cd /tmp
tar zxf /mnt/cdrom/VMwareTools-*.tar.gz
./vmware-tools-distrib/vmware-install.pl --default
@mcotton
mcotton / routes.js
Created October 15, 2011 04:57 — forked from tj/routes.js
Express routes
var app = require('../app');
console.log();
app.routes.all().forEach(function(route){
console.log(' \033[90m%s \033[36m%s\033[0m', route.method.toUpperCase(), route.path);
});
console.log();
process.exit();
@mcotton
mcotton / about.md
Created August 10, 2011 03:08 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer