Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add occa-transpiler #27995

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions recipes/occa-transpiler/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

# This was required for the local docker build to work.
git config --global --add safe.directory '*'

mkdir build
cd build

export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"

cmake ${CMAKE_ARGS} \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
..

cmake --build . -- -j$(( CPU_COUNT>4 ? 4 : CPU_COUNT ))
cmake --build . --target install
41 changes: 41 additions & 0 deletions recipes/occa-transpiler/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% set name = "occa-transpiler" %}
{% set version = "1.1" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: https://github.com/libocca/occa-transpiler/releases/download/v{{ version }}/occa-transpiler-{{ version }}-including-submodules.tar.gz
sha256: 87177c647e1894b6a49cb7a875d9a00c3d1b7b72c898e17ea97ad1c1bf85ccc6

build:
number: 0
skip: true # [win]

requirements:
build:
- cmake
- make
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
host:
- clangdev ==17.0.6
run:
- clangdev ==17.0.6
- libllvm17 ==17.0.6

test:
commands:
- test -f $PREFIX/lib/libocca-transpiler.so

about:
home: https://github.com/libocca/occa-transpiler.git
summary: 'Transpile OCCA kernels to native GPU kernels (CUDA, HIP, etc.)'
license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- thilinarmtb
Loading