Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Add a clang build #471

Merged
merged 1 commit into from
May 22, 2023
Merged
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
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ jobs:
sudo dpkg -i intel-igc-core_1.0.12812.24_amd64.deb intel-level-zero-gpu_1.3.25018.24_amd64.deb libigdgmm12_22.3.0_amd64.deb intel-igc-opencl_1.0.12812.24_amd64.deb
conda install -n omnisci-dev -c conda-forge level-zero-devel pkg-config

- name: Install clang
if: inputs.name == 'clang'
run: |
conda install -n omnisci-dev -c conda-forge compiler-rt

- name: Restore Maven cache
uses: actions/cache@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/forge.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Forge
on:
workflow_dispatch:
inputs:
Expand All @@ -24,4 +24,4 @@ jobs:
run: |
cp recipe/* hdk-feedstock/recipe/
cd hdk-feedstock
python build-locally.py linux_64_c_compiler_version11cuda_compiler_versionNonecxx_compiler_version11numpy1.21python3.9.____cpython
python build-locally.py linux_64_c_compiler_version9cuda_compilernvcccuda_compiler_version11.0cxx_compiler_version9numpy1.21python3.9.____cpython
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
cuda_compiler_version: 12-0
options: -DENABLE_CUDA=on

build-clang:
name: Build Clang
uses: ./.github/workflows/build.yml
with:
name: clang
options: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

build-l0:
name: Build
uses: ./.github/workflows/build.yml
Expand Down Expand Up @@ -55,6 +62,15 @@ jobs:
with:
cache-suffix: ${{ needs.build.outputs.cache-suffix }}
test: sanity

sanity-clang:
name: Sanity test (Gtests, Clang)
needs: build-clang
uses: ./.github/workflows/test.yml
with:
name: clang
cache-suffix: ${{ needs.build.outputs.cache-suffix }}
test: sanity

asan:
name: Asan test (Gtests)
Expand Down Expand Up @@ -117,3 +133,4 @@ jobs:
pytest:
name: PyHDK (Pytest)
uses: ./.github/workflows/pytest.yml

4 changes: 2 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set version = "0.5.0" %} # PEP 386

{% set number = "0" %}
{% set number = "1" %}
{% set cuda_enabled = cuda_compiler_version is not undefined and cuda_compiler_version == '11.0' %}
{% set build_ext = "cuda" if cuda_enabled else "cpu" %}
{% set build_string = "h{}_{}".format(PKG_HASH, number) %}
Expand Down Expand Up @@ -34,7 +34,7 @@ outputs:
script: build-hdk.sh
build:
string: {{ py_build_string_ext }}
skip: True # [py not in (38, 39, 310)]
skip: True # [py not in (38, 39, 310, 311)]
missing_dso_whitelist:
- '*/libcuda.*' # [cuda_compiler_version not in (undefined, "None")]
- '*/libjvm.so'
Expand Down