Giter Site home page Giter Site logo

pitikorn32 / cuda-cudnn-gpu-devcontainer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alankrantas/tensorflow-cuda-gpu-devcontainer

0.0 0.0 0.0 30 KB

NVIDIA CUDA + cuDNN DevContainer Template with GPU Support

License: MIT License

Shell 31.47% Python 11.27% Jupyter Notebook 57.26%

cuda-cudnn-gpu-devcontainer's Introduction

NVIDIA CUDA + cuDNN DevContainer Template with GPU Support

Build and run a DevContainer with Python 3, CUDA 11.8 and cuDNN. This is a better way to run Tensorflow/AutoKeras on Windows with GPU support without frustrating installation and compatibility issues. .py and .ipynb scripts are supported without the need to install Anaconda/Jupyter Notebook.

Prerequisites

See here for more detailed hardware and system requirements of running Tensorflow.

Be warned that some deep learning models require more GPU memory than others and may cause the Python kernel to crash. You may need to set a smaller batch for training.

Start DevContainer

Modify requirements.txt to include packages you'd like to install. ipykernel is required for executing IPython notebook cells in VS Code.

Open the folder in VS Code, press F1 to bring up the Command Palette, and select Dev Containers: Open Folder in Container...

Wait until the DevContainer is up and running, then test if the Tensorflow can detect the GPU correctly:

python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

Test run using the example file:

python3 autokeras-test.py

Or open autokeras-test.ipynb and run the cells.

After that, simply start Docker then open the directory in VS Code to use the built container.

Resources

See here for the latest version of libcudnn8 and libcudnn8-dev in install-dev-tools.sh.

cuda-cudnn-gpu-devcontainer's People

Contributors

alankrantas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.