From 1d22a2543a48b72dc6a9195118ae78f6a6cf87f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kr=C3=A1l?= Date: Mon, 18 Mar 2024 11:01:24 +0100 Subject: [PATCH] adding easyconfigs: FLINT-3.1.1-gfbf-2023b.eb, NTL-11.5.1-GCC-13.2.0.eb --- .../f/FLINT/FLINT-3.1.1-gfbf-2023b.eb | 45 +++++++++++++++++++ .../n/NTL/NTL-11.5.1-GCC-13.2.0.eb | 45 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 easybuild/easyconfigs/f/FLINT/FLINT-3.1.1-gfbf-2023b.eb create mode 100644 easybuild/easyconfigs/n/NTL/NTL-11.5.1-GCC-13.2.0.eb diff --git a/easybuild/easyconfigs/f/FLINT/FLINT-3.1.1-gfbf-2023b.eb b/easybuild/easyconfigs/f/FLINT/FLINT-3.1.1-gfbf-2023b.eb new file mode 100644 index 00000000000..c5063ad3ef4 --- /dev/null +++ b/easybuild/easyconfigs/f/FLINT/FLINT-3.1.1-gfbf-2023b.eb @@ -0,0 +1,45 @@ +easyblock = 'CMakeMake' + +name = 'FLINT' +version = '3.1.1' + +homepage = 'https://www.flintlib.org/' + +description = """FLINT (Fast Library for Number Theory) is a C library in support of computations + in number theory. Operations that can be performed include conversions, arithmetic, computing GCDs, + factoring, solving linear systems, and evaluating special functions. In addition, FLINT provides + various low-level routines for fast arithmetic. FLINT is extensively documented and tested.""" + +toolchain = {'name': 'gfbf', 'version': '2023b'} +toolchainopts = {'pic': True} + +source_urls = ['https://github.com/flintlib/%(namelower)s/releases/download/v%(version)s/'] +sources = [SOURCELOWER_TAR_GZ] +checksums = ['161f81d0a809408daab36ec79ba89380346dc3195d3671f97106f1b8774f653a'] + +builddependencies = [ + ('CMake', '3.27.6'), + ('Python', '3.11.5'), +] + +dependencies = [ + ('GMP', '6.3.0'), + ('MPFR', '4.2.1'), + ('NTL', '11.5.1'), +] + +# Make flexiblas the first to be found and used to avoid linking openblas. +preconfigopts = 'sed -i "s/PATH_SUFFIXES openblas/PATH_SUFFIXES flexiblas openblas/g;' +preconfigopts += 's/accelerate openblas/accelerate flexiblas openblas/g" ' +preconfigopts += '%(builddir)s/%(namelower)s-%(version)s/CMake/FindCBLAS.cmake && ' + +configopts = '-DWITH_NTL=on -DBUILD_TESTING=yes' + +runtest = 'test' + +sanity_check_paths = { + 'files': ['lib/lib%%(namelower)s.%s' % SHLIB_EXT], + 'dirs': ['include'], +} + +moduleclass = 'math' diff --git a/easybuild/easyconfigs/n/NTL/NTL-11.5.1-GCC-13.2.0.eb b/easybuild/easyconfigs/n/NTL/NTL-11.5.1-GCC-13.2.0.eb new file mode 100644 index 00000000000..f3277ec81bd --- /dev/null +++ b/easybuild/easyconfigs/n/NTL/NTL-11.5.1-GCC-13.2.0.eb @@ -0,0 +1,45 @@ +# contributed by Guilherme Peretti-Pezzi (CSCS) +# updated by Alex Domingo (Vrije Universiteit Brussel) +# updated by Åke Sandgren(Umeå University) +# Update: Petr Král (INUITS) +easyblock = 'ConfigureMake' + +name = 'NTL' +version = '11.5.1' + +homepage = 'https://shoup.net/ntl/' + +description = """NTL is a high-performance, portable C++ library providing data structures and +algorithms for manipulating signed, arbitrary length integers, and for vectors, +matrices, and polynomials over the integers and over finite fields.""" + +toolchain = {'name': 'GCC', 'version': '13.2.0'} +toolchainopts = {'pic': True} + +github_account = 'libntl' +source_urls = [GITHUB_LOWER_SOURCE] +sources = ['v%(version)s.tar.gz'] +checksums = ['ef578fa8b6c0c64edd1183c4c303b534468b58dd3eb8df8c9a5633f984888de5'] + +builddependencies = [ + ('Perl', '5.38.0'), +] + +dependencies = [ + ('GMP', '6.3.0'), +] + +start_dir = 'src' + +prefix_opt = 'PREFIX=' +configopts = 'CXX="$CXX" CXXFLAGS="$CXXFLAGS" GMP_PREFIX="$EBROOTGMP" SHARED=on' + +runtest = 'check' + +sanity_check_paths = { + 'files': ['lib/libntl.%s' % e for e in ['a', SHLIB_EXT]], + 'dirs': ['include/NTL', 'share/doc'], +} + +moduleclass = 'math' +