Skip to content

Commit c30b408

Browse files
committed
Try install ubuntu opencl 5
1 parent 16fe4aa commit c30b408

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
- name: Install OpenCL - Ubuntu
4040
if: matrix.os == 'ubuntu-22.04'
4141
run: |
42-
sudo apt-get update -qq
43-
sudo apt-get install -qq intel-opencl-icd ocl-icd-opencl-dev pocl-opencl-icd
42+
sudo apt update -qq
43+
sudo apt install -qq intel-opencl-icd opencl-headers ocl-icd-opencl-dev
4444
4545
- name: Build Current Binary
4646
if: matrix.os != 'ubuntu-22.04-arm'

src/binding.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
'<!@(node -p "require(\'addon-tools-raub\').getInclude()")',
1515
'<(cl_include)',
1616
],
17-
'library_dirs': ['<(module_root_dir)/lib'],
1817
'conditions': [
1918
['OS=="linux"', {
2019
'libraries': [
2120
"-Wl,-rpath,'$$ORIGIN'",
22-
'libOpenCL.so',
21+
'-lOpenCL',
2322
],
2423
}],
2524
['OS=="mac"', {
2625
'libraries': ['-framework OpenCL'],
2726
}],
2827
['OS=="win"', {
28+
'library_dirs': ['<(module_root_dir)/lib'],
2929
'libraries': ['OpenCL.lib'],
3030
}],
3131
],

0 commit comments

Comments
 (0)