meta.yaml 1.24 KB
Newer Older
dugupeiwen's avatar
init  
dugupeiwen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% set opencl_devel_ver="1.2.0-2018053132" %}
{% set opencl_devel_sha256="95f429a25d7e6081fe1c75bd05feb5e515408b82a1631f09d96abb4232e1af68" %}

package:
    name: roctools
    version:  {{ environ.get('GIT_DESCRIBE_TAG', '') }}

source:
  - path: ../..
  - fn: rocm-opencl-devel-{{ opencl_devel_ver }}.x86_64.rpm
    url: http://repo.radeon.com/rocm/yum/rpm/rocm-opencl-devel-{{ opencl_devel_ver }}.x86_64.rpm
    folder: opencl_tmp
    sha256: {{ opencl_devel_sha256 }}

build:
    number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}

requirements:
  build:
    - {{ compiler('c') }} # [unix]
    - {{ compiler('cxx') }} # [unix]
    - cmake>=2.8
    - xz
    - zlib
    - bzip2
    - libarchive
    - llvmdev_amdgcn
    # gtest is used in the test binaries
    - gtest

  host:
    - zlib # for llvm binary tooling that is copied in

test:
  commands:
    # The librocmlite.so DSO is tested at compile time

    # Check llvm binaries actually run
    - opt --help | grep amdgpu
    - llc --help | grep amdgpu
    - llvm-link --help
    - ld.lld --help

about:
    home: https://github.com/numba/roctools
    license: BSD
    summary: A shared library that wraps LLVM for code
             generation for devices with Radeon Open Compute support.
    license_file: LICENSE