aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/clang.js
diff options
context:
space:
mode:
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);
+ }
+}