Skip to content

Commit

Permalink
tiny-tensor-compiler: fix missing dependencies (spack#44465)
Browse files Browse the repository at this point in the history
* tiny-tensor-compiler: fix missing dependencies
* tiny-tensor-compiler: Remove dependency type for opencl c headers
* [email protected] has a mandatory Python interpreter dependency
* Remove [email protected]

---------

Signed-off-by: Carsten Uphoff <[email protected]>
  • Loading branch information
uphoffc authored Jul 4, 2024
1 parent 50027d7 commit 0eca86f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions var/spack/repos/builtin/packages/re2c/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class Re2c(Package):

license("Public-Domain")

# Python 3.7 is required for [email protected], but the clingo bootstrap on OpenSUSE Leap uses
# the system Python 3.6 such that the bootstrap fails with an UnsatisfiableVersionSpecError
# version("3.1", sha256="0ac299ad359e3f512b06a99397d025cfff81d3be34464ded0656f8a96676c029")
version("3.0", sha256="b3babbbb1461e13fe22c630a40c43885efcfbbbb585830c6f4c0d791cf82ba0b")
version("2.2", sha256="0fc45e4130a8a555d68e230d1795de0216dfe99096b61b28e67c86dfd7d86bda")
version("2.1.1", sha256="036ee264fafd5423141ebd628890775aa9447a4c4068a6307385d7366fe711f8")
version("2.1", sha256="8cba0d95c246c670de8f97f57def83a9c0f2113eaa6f7e4867a941f48f633540")
Expand All @@ -33,6 +37,7 @@ class Re2c(Package):
depends_on("gmake", when="platform=linux")
depends_on("gmake", when="platform=darwin")
depends_on("gmake", when="platform=freebsd")
# depends_on("python@3:", when="@3.1:", type="build")

@property
def make_tool(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ class TinyTensorCompiler(CMakePackage):
depends_on("[email protected]:", type="build")
depends_on("double-batched-fft-library ~sycl ~level-zero [email protected]:", type="link")
depends_on("[email protected]:", when="+level-zero")
depends_on("[email protected]:", when="+opencl")
depends_on("[email protected]:", when="+opencl", type="link")
depends_on("[email protected]:", type="build")
depends_on("[email protected]:", type="build")

def cmake_args(self):
cxx_compiler = os.path.basename(self.compiler.cxx)
Expand Down

0 comments on commit 0eca86f

Please sign in to comment.