Skip to content

Support different cuda versions in Python Predictor base image #923

@deliahu

Description

@deliahu

Motivation

As shown in TensorFlow's compatibility matrix, different versions of TensorFlow rely on different versions of CUDA. The same is true for Pytorch.

Solution

Build multiple versions of python-gpu-slim:

cortexlabs/python-predictor-gpu-slim:<cortex_version>-cuda10.0
cortexlabs/python-predictor-gpu-slim:<cortex_version>-cuda10.1
cortexlabs/python-predictor-gpu-slim:<cortex_version>-cuda10.2
cortexlabs/python-predictor-gpu-slim:<cortex_version>-cuda11.0

And for the full version of the image python-gpu:

cortexlabs/python-predictor-gpu:<cortex_version>

Here is an example of using a Docker build arg:

ARG CUDA_VERSION=10.1
FROM nvidia/cuda:$CUDA_VERSION-cudnn7-devel-ubuntu18.04

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions