BLT version lockdown (#23356)
* lock down packages that export targets to pre-BLT 0.4.0 so that they can move forward when ready * don't default to 0.4.0
This commit is contained in:
parent
d8390ee2fb
commit
a618594c28
@ -18,7 +18,16 @@ class Blt(Package):
|
||||
|
||||
version('develop', branch='develop')
|
||||
version('main', branch='main')
|
||||
# Note: 0.4.0 contains a breaking change to BLT created targets
|
||||
# if you export targets this could cause problems in downstream
|
||||
# projects if not handled properly. More info here:
|
||||
# https://llnl-blt.readthedocs.io/en/develop/tutorial/exporting_targets.html
|
||||
version('0.4.0', sha256='f3bc45d28b9b2eb6df43b75d4f6f89a1557d73d012da7b75bac1be0574767193')
|
||||
|
||||
# 0.3.6 + a specific fix for versions of packages that rely on rocm and
|
||||
# cannot move completely forward in BLT to the breaking change in 0.4.0
|
||||
version('0.3.6rocm', commit='a98a5836c7a9e34b75a54eb46212812796fe5557')
|
||||
|
||||
version('0.3.6', sha256='6276317c29e7ff8524fbea47d9288ddb40ac06e9f9da5e878bf9011e2c99bf71')
|
||||
version('0.3.5', sha256='68a1c224bb9203461ae6f5ab0ff3c50b4a58dcce6c2d2799489a1811f425fb84')
|
||||
version('0.3.0', sha256='bb917a67cb7335d6721c997ba9c5dca70506006d7bba5e0e50033dd0836481a5')
|
||||
|
@ -22,15 +22,12 @@ class Camp(CMakePackage, CudaPackage, ROCmPackage):
|
||||
# TODO: figure out gtest dependency and then set this default True.
|
||||
variant('tests', default=False, description='Build tests')
|
||||
|
||||
depends_on('blt', type='build')
|
||||
depends_on('blt@0.3.7:', type='build', when='+rocm')
|
||||
depends_on('cub', when='+cuda')
|
||||
|
||||
def cmake_args(self):
|
||||
spec = self.spec
|
||||
|
||||
options = []
|
||||
options.append('-DBLT_SOURCE_DIR={0}'.format(spec['blt'].prefix))
|
||||
|
||||
if '+cuda' in spec:
|
||||
options.extend([
|
||||
|
@ -28,8 +28,10 @@ class Care(CMakePackage, CudaPackage, ROCmPackage):
|
||||
variant('tests', default=False, description='Build tests')
|
||||
variant('loop_fuser', default=False, description='Enable loop fusion capability')
|
||||
|
||||
depends_on('blt', type='build')
|
||||
depends_on('blt@0.3.7:', type='build', when='+rocm')
|
||||
depends_on('blt', type='build', when='@0.3.1:')
|
||||
depends_on('blt@:0.3.6', type='build', when='@:0.3.0')
|
||||
# 0.3.6 + specific fix for rocm
|
||||
depends_on('blt@0.3.6rocm', type='build', when='@:0.3.0+rocm')
|
||||
|
||||
depends_on('camp')
|
||||
depends_on('umpire@develop')
|
||||
|
@ -35,8 +35,12 @@ class Chai(CMakePackage, CudaPackage, ROCmPackage):
|
||||
|
||||
depends_on('cmake@3.8:', type='build')
|
||||
depends_on('cmake@3.9:', type='build', when="+cuda")
|
||||
depends_on('blt', type='build')
|
||||
depends_on('blt@0.3.7:', type='build', when='+rocm')
|
||||
|
||||
depends_on('blt', type='build', when='@2.3.1:')
|
||||
depends_on('blt@:0.3.6', type='build', when='@:2.3.0')
|
||||
# 0.3.6 + specific fix for rocm
|
||||
depends_on('blt@0.3.6rocm', type='build', when='@:2.3.0+rocm')
|
||||
|
||||
depends_on('umpire')
|
||||
depends_on('raja', when="+raja")
|
||||
|
||||
|
@ -37,8 +37,10 @@ class Raja(CMakePackage, CudaPackage, ROCmPackage):
|
||||
# and remove the +tests conflict below.
|
||||
variant('tests', default=False, description='Build tests')
|
||||
|
||||
depends_on('blt', type='build')
|
||||
depends_on('blt@0.3.7:', type='build', when='+rocm')
|
||||
depends_on('blt', type='build', when='@0.13.1:')
|
||||
depends_on('blt@:0.3.6', type='build', when='@:0.13.0')
|
||||
# 0.3.6 + specific fix for rocm
|
||||
depends_on('blt@0.3.6rocm', type='build', when='@:0.13.0+rocm')
|
||||
|
||||
depends_on('camp')
|
||||
depends_on('camp+cuda', when='+cuda')
|
||||
|
@ -60,8 +60,10 @@ class Umpire(CMakePackage, CudaPackage, ROCmPackage):
|
||||
depends_on('cmake@3.8:', type='build')
|
||||
depends_on('cmake@3.9:', when='+cuda', type='build')
|
||||
|
||||
depends_on('blt', type='build')
|
||||
depends_on('blt@0.3.7:', type='build', when='+rocm')
|
||||
depends_on('blt', type='build', when='@4.1.3:')
|
||||
depends_on('blt@:0.3.6', type='build', when='@:4.1.2')
|
||||
# 0.3.6 + specific fix for rocm
|
||||
depends_on('blt@0.3.6rocm', type='build', when='@:4.1.2+rocm')
|
||||
|
||||
# variants +rocm and amdgpu_targets are not automatically passed to
|
||||
# dependencies, so do it manually.
|
||||
|
Loading…
Reference in New Issue
Block a user