-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add hip context & evaluator * add hip platform detection * fix some hip compile error * add install hip script * add hip tests * add hip workflow * fixes for hip compilations * add hip toolchain * add sudo when install hip * try to fix hip install * try to fix hip install * try to fix hip install * try to fix hip install * try to fix hip install * try to fix hip install * try to fix hip install
- Loading branch information
Showing
119 changed files
with
14,707 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: hip | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
hip: | ||
name: hip-6.1 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install hip | ||
run: sudo bash scripts/install_hip.sh | ||
- name: setup doctest | ||
run: bash scripts/download_doctest_header.sh -d include/ | ||
- name: build | ||
run: | | ||
export PATH=$PATH:/opt/rocm/bin/ | ||
mkdir -p build/hip && cd build/hip | ||
cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchains/hip.cmake -DNMTOOLS_BUILD_HIP_TESTS=ON ../.. | ||
make -j2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,5 @@ pocl | |
*.bc | ||
*.ll | ||
llvm.sh | ||
install | ||
install | ||
amdgpu-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
set(CMAKE_C_COMPILER hipcc) | ||
set(CMAKE_CXX_COMPILER hipcc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef NMTOOLS_ARRAY_EVAL_HIP_HPP | ||
#define NMTOOLS_ARRAY_EVAL_HIP_HPP | ||
|
||
#include "nmtools/array/eval/hip/context.hpp" | ||
#include "nmtools/array/eval/hip/evaluator.hpp" | ||
|
||
#endif // NMTOOLS_ARRAY_EVAL_HIP_HPP |
Oops, something went wrong.