Skip to content

Commit 999783e

Browse files
committed
Investigate ubuntu cl 8
1 parent e70e3fb commit 999783e

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint": "eslint .",
3838
"build": "cd src && node-gyp rebuild -j max --silent && node -e \"require('addon-tools-raub').cpbin('opencl')\"",
3939
"test": "node --test --watch",
40-
"test-ci": "node --test"
40+
"test-ci": "node --test --test-reporter spec"
4141
},
4242
"repository": {
4343
"type": "git",

test/device.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const { describe, it } = require('node:test');
55

66
const cl = require('../');
77
const U = require('./utils');
8-
require('./utils/device_selection');
98

109

1110
describe('Device', () => {

test/program.test.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ describe('Program', async () => {
161161
cl.INVALID_VALUE,
162162
);
163163
});
164-
165-
it('fails as kernel name is unknown', () => {
166-
assert.throws(
167-
() => cl.createProgramWithBuiltInKernels(context, [device], ['nocl_test']),
168-
cl.INVALID_VALUE,
169-
);
170-
});
171164
});
172165

173166
describe('#retainProgram', () => {
@@ -301,12 +294,6 @@ describe('Program', async () => {
301294
});
302295
});
303296

304-
describe('#unloadPlatformCompiler', () => {
305-
it('is a function', () => {
306-
assert.strictEqual(typeof cl.unloadPlatformCompiler, 'function');
307-
});
308-
});
309-
310297
describe('#getProgramInfo', () => {
311298
const testForType = (clKey, _assert) => {
312299
it('returns the good type for ' + clKey, () => {

test/utils/device_selection.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ const cl = require('../..');
1010
// Grab ALL possible devices into a flat array
1111
const devicesAll = cl.getPlatformIDs().flatMap((platform) => {
1212
const version = cl.getPlatformInfo(platform, cl.PLATFORM_VERSION);
13-
console.log('Platform:', platform, version);
1413
const platformDevices = cl.getDeviceIDs(platform);
15-
console.log('Devices', platformDevices);
1614

1715
return platformDevices.map((device) => ({
1816
platform,
@@ -35,8 +33,11 @@ const cl = require('../..');
3533
global.MAIN_PLATFORM = devices[deviceIdx].platform;
3634
global.MAIN_DEVICE_TYPE = devices[deviceIdx].type;
3735

38-
// console.log('\n-----------------------------');
39-
// console.log('AVAILABLE DEVICES:', global.DEVICES);
40-
// console.log('\nACTIVE DEVICE:', devices[deviceIdx].version);
41-
// console.log('-----------------------------\n');
36+
console.log('\n-----------------------------');
37+
console.log(
38+
'AVAILABLE DEVICES:',
39+
global.DEVICES.map(({ name, version }) => `${version} ${name}`),
40+
);
41+
console.log('ACTIVE DEVICE:', devices[deviceIdx].version, devices[deviceIdx].name);
42+
console.log('-----------------------------\n');
4243
})();

0 commit comments

Comments
 (0)