mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	cu116 docker image
Summary: cu116 builds need to happen in a specific image. Reviewed By: patricklabatut Differential Revision: D37680352 fbshipit-source-id: 81bef0642ad832e83e4eba6321287759b3229303
This commit is contained in:
		
							parent
							
								
									a94f3f4c4b
								
							
						
					
					
						commit
						00acf0b0c7
					
				@ -337,6 +337,7 @@ workflows:
 | 
			
		||||
          python_version: '3.7'
 | 
			
		||||
          pytorch_version: 1.12.0
 | 
			
		||||
      - binary_linux_conda:
 | 
			
		||||
          conda_docker_image: pytorch/conda-builder:cuda116
 | 
			
		||||
          context: DOCKERHUB_TOKEN
 | 
			
		||||
          cu_version: cu116
 | 
			
		||||
          name: linux_conda_py37_cu116_pyt1120
 | 
			
		||||
@ -499,6 +500,7 @@ workflows:
 | 
			
		||||
          python_version: '3.8'
 | 
			
		||||
          pytorch_version: 1.12.0
 | 
			
		||||
      - binary_linux_conda:
 | 
			
		||||
          conda_docker_image: pytorch/conda-builder:cuda116
 | 
			
		||||
          context: DOCKERHUB_TOKEN
 | 
			
		||||
          cu_version: cu116
 | 
			
		||||
          name: linux_conda_py38_cu116_pyt1120
 | 
			
		||||
@ -661,6 +663,7 @@ workflows:
 | 
			
		||||
          python_version: '3.9'
 | 
			
		||||
          pytorch_version: 1.12.0
 | 
			
		||||
      - binary_linux_conda:
 | 
			
		||||
          conda_docker_image: pytorch/conda-builder:cuda116
 | 
			
		||||
          context: DOCKERHUB_TOKEN
 | 
			
		||||
          cu_version: cu116
 | 
			
		||||
          name: linux_conda_py39_cu116_pyt1120
 | 
			
		||||
@ -706,6 +709,7 @@ workflows:
 | 
			
		||||
          python_version: '3.10'
 | 
			
		||||
          pytorch_version: 1.12.0
 | 
			
		||||
      - binary_linux_conda:
 | 
			
		||||
          conda_docker_image: pytorch/conda-builder:cuda116
 | 
			
		||||
          context: DOCKERHUB_TOKEN
 | 
			
		||||
          cu_version: cu116
 | 
			
		||||
          name: linux_conda_py310_cu116_pyt1120
 | 
			
		||||
 | 
			
		||||
@ -33,11 +33,15 @@ CONDA_CUDA_VERSIONS = {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def conda_docker_image_for_cuda(cuda_version):
 | 
			
		||||
    if cuda_version in ("cu101", "cu102", "cu111"):
 | 
			
		||||
        return None
 | 
			
		||||
    if cuda_version == "cu113":
 | 
			
		||||
        return "pytorch/conda-builder:cuda113"
 | 
			
		||||
    if cuda_version == "cu115":
 | 
			
		||||
        return "pytorch/conda-builder:cuda115"
 | 
			
		||||
    return None
 | 
			
		||||
    if cuda_version == "cu116":
 | 
			
		||||
        return "pytorch/conda-builder:cuda116"
 | 
			
		||||
    raise ValueError("Unknown cuda version")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def pytorch_versions_for_python(python_version):
 | 
			
		||||
 | 
			
		||||
@ -8,3 +8,4 @@
 | 
			
		||||
sudo docker run --rm  -v "$PWD/../../:/inside" pytorch/conda-cuda bash inside/packaging/linux_wheels/inside.sh
 | 
			
		||||
sudo docker run --rm  -v "$PWD/../../:/inside" -e SELECTED_CUDA=cu113 pytorch/conda-builder:cuda113 bash inside/packaging/linux_wheels/inside.sh
 | 
			
		||||
sudo docker run --rm  -v "$PWD/../../:/inside" -e SELECTED_CUDA=cu115 pytorch/conda-builder:cuda115 bash inside/packaging/linux_wheels/inside.sh
 | 
			
		||||
sudo docker run --rm  -v "$PWD/../../:/inside" -e SELECTED_CUDA=cu116 pytorch/conda-builder:cuda116 bash inside/packaging/linux_wheels/inside.sh
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user