AMD ROCm 3.8.0 - roctracer-dev (#19086)
* AMD ROCm 3.8.0 - roctracer-dev * Update var/spack/repos/builtin/packages/roctracer-dev/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * added py-ply dependency * remove py-ply * Update var/spack/repos/builtin/packages/roctracer-dev/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
parent
4d45aca3ea
commit
09d0623be9
@ -0,0 +1,19 @@
|
||||
# Copyright 2013-2020 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 *
|
||||
|
||||
|
||||
class PyCppheaderparser(PythonPackage):
|
||||
"""Parse C++ header files and generate a data structure
|
||||
representing the class"""
|
||||
|
||||
homepage = "https://pypi.org/project/CppHeaderParser"
|
||||
url = "https://pypi.io/packages/source/C/CppHeaderParser/CppHeaderParser-2.7.4.tar.gz"
|
||||
|
||||
version('2.7.4', sha256='382b30416d95b0a5e8502b214810dcac2a56432917e2651447d3abe253e3cc42')
|
||||
|
||||
depends_on('py-setuptools', type='build')
|
||||
depends_on('py-ply', type=('build', 'run'))
|
@ -17,12 +17,16 @@ class RoctracerDev(CMakePackage):
|
||||
|
||||
maintainers = ['srekolam', 'arjun-raj-kuppala']
|
||||
|
||||
version('3.8.0', sha256='5154a84ce7568cd5dba756e9508c34ae9fc62f4b0b5731f93c2ad68b21537ed1')
|
||||
version('3.7.0', sha256='6fa5b771e990f09c242237ab334b9f01039ec7d54ccde993e719c5d6577d1518')
|
||||
version('3.5.0', sha256='7af5326c9ca695642b4265232ec12864a61fd6b6056aa7c4ecd9e19c817f209e')
|
||||
|
||||
depends_on('cmake@3:', type='build')
|
||||
depends_on('py-setuptools@:44', type='build')
|
||||
depends_on('python@:2', type='build')
|
||||
depends_on('py-cppheaderparser', type='build')
|
||||
|
||||
for ver in ['3.5.0', '3.7.0']:
|
||||
for ver in ['3.5.0', '3.7.0', '3.8.0']:
|
||||
depends_on('hsakmt-roct@' + ver, type='build', when='@' + ver)
|
||||
depends_on('hsa-rocr-dev@' + ver, type='build', when='@' + ver)
|
||||
depends_on('rocminfo@' + ver, type='build', when='@' + ver)
|
||||
@ -36,6 +40,15 @@ def patch(self):
|
||||
filter_file('${CMAKE_PREFIX_PATH}/hsa',
|
||||
'${HSA_RUNTIME_INC_PATH}', 'src/CMakeLists.txt',
|
||||
string=True)
|
||||
kwargs = {'ignore_absent': False, 'backup': False, 'string': False}
|
||||
with working_dir('script'):
|
||||
match = '^#!/usr/bin/python'
|
||||
python = self.spec['python'].command.path
|
||||
substitute = "#!{python}".format(python=python)
|
||||
files = [
|
||||
'check_trace.py', 'gen_ostream_ops.py', 'hsaap.py', 'kfdap.py'
|
||||
]
|
||||
filter_file(match, substitute, *files, **kwargs)
|
||||
|
||||
def cmake_args(self):
|
||||
args = ['-DHIP_VDI=1',
|
||||
|
Loading…
Reference in New Issue
Block a user