Skip to content

Instantly share code, notes, and snippets.

View raulqf's full-sized avatar

raulqf raulqf

View GitHub Profile
@raulqf
raulqf / dualboot.md
Last active May 9, 2019 06:09
How to make a dualboot in windows to use a linux distribution.

How to install in windows 10 a linux distribution in dualboot

UEFI mode appearance has made more difficult the dualboot installation of linux in conjunction with windows. This gist is a brief guide to accomplish this goal.

It is assumed that Windows 10 has been installed. First steps before the linux installation is to disable the windows fast start, hibernation mode and hybrid sleep to avoid future problems. Windows fast start must be unchecked from the power options in the control panel under the section 'What power buttons do'. The hibernation must be disabled using a windows command prompt with admin privileges and typing:

*powercfg.exe /h off*

For further information about these configurations visist https://www.pugetsystems.com/labs/support-software/How-to-disable-Sleep-Mode-or-Hibernation-793/

@raulqf
raulqf / Install_OpenCV4_CUDA11_CUDNN8.md
Last active May 9, 2024 16:51
How to install OpenCV 4.5 with CUDA 11.2 in Ubuntu 22.04

How to install OpenCV 4.5.2 with CUDA 11.2 and CUDNN 8.2 in Ubuntu 22.04

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries:

@raulqf
raulqf / Install_Tensforflow2_with_GPU_in_Ubuntu20.04.md
Last active July 28, 2023 07:14
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

@raulqf
raulqf / Linux_Tips.md
Last active November 19, 2021 02:29
Linux Tips

List of Linux Tips

Kill all the process defined by a process name:

ps -aux | grep 'myProcessName' | grep -v grep | awk '{print $2}' | xargs -r kill -9

Check a line from multiple files:

find . -name 'process.sh' | xargs sed -i 's/..\/load_env.sh/modules\/load_env.sh/g'
@raulqf
raulqf / Install_Multiple_Tensorflow_Cuda_Versions_on_ the_Same_Machines.md
Last active February 27, 2023 20:21
How to install multiple Tensorflow - CUDA versions on the same machine

How to install multiple Tensorflow - CUDA versions on the same machine

As Tensorflow is continuously evolving, it is normal to find a situation in which you require multiple versions of Tensorflow to coexist on the same machine. Those versions can be different enough to have different CUDA library dependencies. In this case, you can be tempted to upgrade to the latest release but maybe some of your solutions are still in production or just there are not more holes in your calendar.

In this gist I will cover how to install several CUDA libraries to support different tensorflow verions. However, there are some red lines that you have to respect as the GCC versions, that must be the same, and the nvidia drivers that must support the target CUDA versions. You can check that information in the Tensoroflow website.

The basic idea is to install the CUDA libraries and abuse of the linux system to find the correct libraries when executing the target tensorflow version