From d9e66b76d9b353bb58c543794e4417187780d506 Mon Sep 17 00:00:00 2001 From: Jonas Jucker Date: Mon, 9 Dec 2024 13:27:48 +0100 Subject: [PATCH] remove libtorch --- repos/c2sm/packages/libtorch/package.py | 49 ------------------------- test/system_test.py | 8 ---- 2 files changed, 57 deletions(-) delete mode 100644 repos/c2sm/packages/libtorch/package.py diff --git a/repos/c2sm/packages/libtorch/package.py b/repos/c2sm/packages/libtorch/package.py deleted file mode 100644 index 55e11ec2ec..0000000000 --- a/repos/c2sm/packages/libtorch/package.py +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other -# Spack Project Developers. See the top-level COPYRIGHT file for details. -# -# SPDX-License-Identifier: (Apache-2.0 OR MIT) - -from spack import * -import shutil - - -class Libtorch(Package): - ''' - PyTorch is a Python package that provides two high-level features: - - - Tensor computation (like NumPy) with strong GPU acceleration - - Deep neural networks built on a tape-based autograd system - ''' - - homepage = "https://pytorch.org/" - url = "https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip" - - maintainers = ['juckerj'] - - version('2.0.1', - url=url, - sha256= - '262f723ee5a2caac977e089bc06e9d840ca33d70706fbd4a2fca04995bb94eb4') - - phases = ['install'] - - def install(self, spec, prefix): - # can't use Spack convenience-function 'install_tree' because it uses - # shutil.copy2 under the hood. For an unknown reason installing from - # the unzipped tarbal only works using shutil.copy. - shutil.copytree('lib', - prefix.lib, - symlinks=True, - copy_function=shutil.copy) - shutil.copytree('include', - prefix.include, - symlinks=True, - copy_function=shutil.copy) - shutil.copytree('share', - prefix.share, - symlinks=True, - copy_function=shutil.copy) - shutil.copytree('bin', - prefix.bin, - symlinks=True, - copy_function=shutil.copy) diff --git a/test/system_test.py b/test/system_test.py index b94f3f1d55..fb38b1f8ec 100644 --- a/test/system_test.py +++ b/test/system_test.py @@ -62,18 +62,10 @@ def test_install_int2lm_3_00_nvhpc(): spack_install('int2lm @int2lm-3.00 %nvhpc', test_root=False) -def test_install_libfyaml(): - spack_install('libfyaml') - - def test_install_libgrib1_nvhpc(): spack_install('libgrib1 %nvhpc') -def test_install_libtorch(): - spack_install('libtorch') - - def test_install_makedepf90(): # Tests are disabled because they fail with: # test1.sh: No such file or directory