Skip to content

Commit ef7f0fc

Browse files
committed
Try opencl ubuntu
1 parent f436ef1 commit ef7f0fc

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/cpplint.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ jobs:
3232
- name: Install Modules
3333
run: npm ci
3434

35-
- name: Install Python
36-
uses: actions/setup-python@v4
37-
with:
38-
python-version: '3.12'
39-
4035
- name: Install Cpplint
4136
run: pip install cpplint
4237

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,11 @@ jobs:
3939
- name: Build Current Binary
4040
run: npm run build
4141

42+
- name: Install OpenCL - Ubuntu
43+
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-22.04-arm'
44+
run: |
45+
sudo apt-get update -qq
46+
sudo apt-get install -qq ocl-icd-opencl-dev pocl-opencl-icd
47+
4248
- name: Run Unit Tests
4349
run: npm run test-ci

src/cpp/bindings.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include "types.hpp"
2-
31
#include "queue.cpp"
42
#include "common.cpp"
53
#include "context.cpp"

src/cpp/program.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ JS_METHOD(createProgramWithSource) { NAPI_ENV;
1818
REQ_STR_ARG(1, str);
1919

2020
cl_int ret = CL_SUCCESS;
21-
size_t lengths[]={(size_t) str.length()};
22-
const char *strings[]={ str.c_str() };
21+
size_t lengths[] = { str.length() };
22+
const char *strings[] = { str.c_str() };
2323
cl_program p = clCreateProgramWithSource(context, 1, strings, lengths, &ret);
2424
CHECK_ERR(ret);
2525

0 commit comments

Comments
 (0)