-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from clEsperanto/use-new-backend-gpu
make it main
- Loading branch information
Showing
14 changed files
with
508 additions
and
352 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,31 @@ | ||
name: Build and Run | ||
|
||
on: | ||
push: | ||
branches: [ use-new-backend-gpu ] | ||
pull_request: | ||
branches: [ use-new-backend-gpu ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
- name: Find available GPUs | ||
run: lspci | grep -i vga | ||
- name: Install openCL | ||
run: sudo apt install ocl-icd-opencl-dev | ||
- name: Check installation | ||
run: dpkg -L ocl-icd-opencl-dev | ||
- name: Build with Maven | ||
run: mvn clean install | ||
|
||
- name: Run Java class | ||
run: java -cp target/classes com.example.YourMainClass |
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,13 @@ | ||
## fetch CLIc from repo release | ||
include(FetchContent) | ||
|
||
option(BUILD_SHARED_LIBS OFF) | ||
option(BUILD_TESTING OFF) | ||
option(BUILD_BENCHMARK OFF) | ||
|
||
FetchContent_Declare( | ||
CLIc | ||
GIT_REPOSITORY ${CLIC_REPO_URL} | ||
GIT_TAG ${CLIC_REPO_TAG} | ||
) | ||
FetchContent_MakeAvailable(CLIc) |
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
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
Oops, something went wrong.