Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
30
Issue boards
Milestones
Wiki
Code
Merge requests
30
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Merge requests
!489
fix(py-torch): sleef enable shared lib build
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix(py-torch): sleef enable shared lib build
spack_v0.21.1_fix_sleef_for_py-torch
into
spack_v0.21.1
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Eric Müller
requested to merge
spack_v0.21.1_fix_sleef_for_py-torch
into
spack_v0.21.1
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
spack_v0.21.1
spack_v0.21.1 (base)
and
latest version
latest version
96be25f0
1 commit,
1 year ago
1 file
+
63
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
packages/sleef/package.py
0 → 100644
+
63
−
0
Options
# Copyright 2013-2023 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.package
import
*
class
Sleef
(
CMakePackage
):
"""
SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT.
"""
homepage
=
"
https://sleef.org
"
url
=
"
https://github.com/shibatch/sleef/archive/3.2.tar.gz
"
git
=
"
https://github.com/shibatch/sleef.git
"
version
(
"
master
"
,
branch
=
"
master
"
)
version
(
"
3.5.1_2020-12-22
"
,
commit
=
"
e0a003ee838b75d11763aa9c3ef17bf71a725bff
"
)
# py-torch@1.8:
version
(
"
3.5.1
"
,
sha256
=
"
415ee9b1bcc5816989d3d4d92afd0cd3f9ee89cbd5a33eb008e69751e40438ab
"
,
preferred
=
True
,
)
version
(
"
3.4.0_2019-07-30
"
,
commit
=
"
7f523de651585fe25cade462efccca647dcc8d02
"
)
# py-torch@1.3:1.7
version
(
"
3.4.0_2019-05-13
"
,
commit
=
"
9b249c53a80343cc1a394ca961d7d5696ea76409
"
,
# py-torch@1.2
git
=
"
https://github.com/zdevito/sleef.git
"
,
)
version
(
"
3.3.1_2018-12-09
"
,
commit
=
"
191f655caa25526ae226cf88dd2529265176014a
"
,
# py-torch@1.1
git
=
"
https://github.com/zdevito/sleef.git
"
,
)
version
(
"
3.2_2018-05-09
"
,
commit
=
"
6ff7a135a1e31979d1e1844a2e7171dfbd34f54f
"
)
# py-torch@0.4.1:1.0
version
(
"
3.2
"
,
sha256
=
"
3130c5966e204e6d6a3ace81e543d12b5b21f60897f1c185bfa587c1bd77bee2
"
)
# https://github.com/shibatch/sleef/issues/474
conflicts
(
"
%apple-clang@15:
"
)
generator
(
"
ninja
"
)
depends_on
(
"
cmake@3.4.3:
"
,
type
=
"
build
"
)
# # https://github.com/shibatch/sleef/issues/475
# depends_on("fftw-api")
# depends_on("mpfr")
# depends_on("openssl")
# # https://github.com/shibatch/sleef/issues/458
# conflicts("^mpfr@4.2:")
# begin EBRAINS (modified): removed "disable shared lib build" to fix py-torch
# this was fixed upstream in 8c061e51.
def
cmake_args
(
self
):
# https://salsa.debian.org/science-team/sleef/-/blob/master/debian/rules
return
[
self
.
define
(
"
BUILD_DFT
"
,
False
),
self
.
define
(
"
BUILD_TESTS
"
,
False
),
]
# end EBRAINS