aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/clang.js
diff options
context:
space:
mode:
authorRobert Cohn <robert.s.cohn@intel.com>2022-09-02 14:19:20 -0400
committerGitHub <noreply@github.com>2022-09-02 20:19:20 +0200
commite330b469ef63d2291afdddd72e873a3cf15dacc7 (patch)
tree17785536d4b1de7a4f33a5249e18d2c5a8c45e01 /lib/compilers/clang.js
parent1ae96db4825d89f482955522e448313659f475e6 (diff)
downloadcompiler-explorer-e330b469ef63d2291afdddd72e873a3cf15dacc7.tar.gz
compiler-explorer-e330b469ef63d2291afdddd72e873a3cf15dacc7.zip
use openCL from icx install (#4015)gh-4088
Diffstat (limited to 'lib/compilers/clang.js')
-rw-r--r--lib/compilers/clang.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/compilers/clang.js b/lib/compilers/clang.js
index 891999580..b0c90588f 100644
--- a/lib/compilers/clang.js
+++ b/lib/compilers/clang.js
@@ -184,3 +184,17 @@ export class ClangHipCompiler extends ClangCompiler {
return ['-o', this.filename(outputFilename), '-g1', '--no-gpu-bundle-output', filters.binary ? '-c' : '-S'];
}
}
+
+export class ClangIntelCompiler extends ClangCompiler {
+ static get key() {
+ return 'clang-intel';
+ }
+
+ runExecutable(executable, executeParameters, homeDir) {
+ executeParameters.env = {
+ OCL_ICD_FILENAMES: path.resolve(path.dirname(this.compiler.exe) + '/../lib/x64/libintelocl.so'),
+ ...executeParameters.env,
+ };
+ return super.runExecutable(executable, executeParameters, homeDir);
+ }
+}