Project

General

Profile

Feature #11182

Figure out how to build OpenCL kernels with LLVM/Clang

Added by Roman Lebedev over 2 years ago. Updated over 2 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
09/27/2016
Due date:
% Done:

100%

Affected Version:
git master branch
System:
all
bitness:
64-bit
hardware architecture:
amd64/x86

Description

It would be useful to test-compile (or at least do the syntax check) those during standard cmake build.

History

#1 Updated by Roman Lebedev over 2 years ago

Hm, with clang-3.9+, this seems to simply work:

for i in *.cl;
do
  clang-3.9 -cc1 -cl-std=CL1.1 -isystem /usr/lib/llvm-3.9/lib/clang/3.9.0/include -finclude-default-header -I./ $i
done

#2 Updated by Roman Lebedev over 2 years ago

  • % Done changed from 0 to 70
  • Status changed from New to Patch attached

#3 Updated by Roman Lebedev over 2 years ago

  • Status changed from Patch attached to Fixed
  • % Done changed from 70 to 100
  • Target version changed from Future to 2.2.0

#4 Updated by Roman Lebedev over 2 years ago

  • Target version changed from 2.2.0 to 2.4.0

Also available in: Atom PDF