# IT4Innovvations
# LK 2023

name = 'AOMP'
version = '17.0-1'

homepage = 'https://github.com/ROCm-Developer-Tools/aomp'
description = "AMD fork of LLVM, setup for OpenMP offloading to Accelerators"

toolchain = {'name': 'gcccuda', 'version': '2022b'}

source_urls = ['https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_%(version)s/']
sources = ['aomp-%(version)s.tar.gz']
#patches = ['AOMP-13.0-2_remove_hardcoded_paths.patch']
checksums = [
    # aomp-13.0-2.tar.gz:
    '5b39f84ee38fcfd27849b55da4d99183e0b7f33eb335e07e5110c9de1cfe5b85',
    # AOMP-13.0-2_remove_hardcoded_paths.patch:
#    'ec41ffcec63d079b6a73c93bea29e0b8d77ca7b059725aa1d47c334f7e476ff0',
]

builddependencies = [
    ('CMake', '3.24.3'),
    ('Perl', '5.36.0'),
    ('Python', '3.10.8'),
    ('elfutils', '0.189'),
    ('pkg-config', '0.29.2'),
]

dependencies = [
    ('binutils', '2.39'),
    ('libffi', '3.4.4'),
    ('ncurses', '6.3'),
    ('numactl', '2.0.16'),
    ('libdrm', '2.4.114'),
]

moduleclass = 'compiler'
