/
libclc
491 lines (471 loc) · 8.81 KB
/
libclc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
# Buildsheet autogenerated by ravenadm tool -- Do not edit.
NAMEBASE= libclc
VERSION= 18.1.5
KEYWORDS= devel
VARIANTS= standard
SDESC[standard]= Required library functions for OpenCL C language
HOMEPAGE= http://libclc.llvm.org/
CONTACT= nobody
DOWNLOAD_GROUPS= main
SITES[main]= https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.5/
DISTFILE[1]= libclc-18.1.5.src.tar.xz:main
DF_INDEX= 1
SPKGS[standard]= single
OPTIONS_AVAILABLE= none
OPTIONS_STANDARD= none
BUILD_DEPENDS= libedit:single:standard
llvm:dev:standard
llvm:tools:standard
clang:complete:standard
spirv-llvm-translator:primary:standard
spirv-llvm-translator:dev:standard
USES= python:build cmake
DISTNAME= libclc-18.1.5.src/
LICENSE= CUSTOM1:single
LICENSE_NAME= CUSTOM1:"Apache 2.0 License with LLVM Exceptions"
LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE.TXT
LICENSE_SCHEME= solo
FPC_EQUIVALENT= devel/libclc
MAKE_ENV= MAKE=make
CCACHE_CPP2=yes
[FILE:312:descriptions/desc.single]
libclc is an open source, BSD licensed implementation of the library
requirements of the OpenCL C programming language, as specified by the
OpenCL 1.1 Specification. The following sections of the specification
impose library requirements:
Libclc is intended to be used with the Clang compiler's OpenCL frontend
[FILE:103:distinfo]
3e54662d1897b1af5ec6d9cd04831393cab428d1a93814ad3812255ae2aa0d45 126544 libclc-18.1.5.src.tar.xz
[FILE:6967:manifests/plist.single]
include/clc/
as_type.h
atom_decl_int32.inc
atom_decl_int64.inc
clc.h
clcfunc.h
clcmacros.h
clctypes.h
convert.h
include/clc/async/
async_work_group_copy.h
async_work_group_copy.inc
async_work_group_strided_copy.h
async_work_group_strided_copy.inc
gentype.inc
prefetch.h
prefetch.inc
wait_group_events.h
include/clc/atomic/
atomic_add.h
atomic_and.h
atomic_cmpxchg.h
atomic_dec.h
atomic_decl.inc
atomic_inc.h
atomic_max.h
atomic_min.h
atomic_or.h
atomic_sub.h
atomic_xchg.h
atomic_xor.h
include/clc/cl_khr_global_int32_base_atomics/
atom_add.h
atom_cmpxchg.h
atom_dec.h
atom_inc.h
atom_sub.h
atom_xchg.h
include/clc/cl_khr_global_int32_extended_atomics/
atom_and.h
atom_max.h
atom_min.h
atom_or.h
atom_xor.h
include/clc/cl_khr_int64_base_atomics/
atom_add.h
atom_cmpxchg.h
atom_dec.h
atom_inc.h
atom_sub.h
atom_xchg.h
include/clc/cl_khr_int64_extended_atomics/
atom_and.h
atom_max.h
atom_min.h
atom_or.h
atom_xor.h
include/clc/cl_khr_local_int32_base_atomics/
atom_add.h
atom_cmpxchg.h
atom_dec.h
atom_inc.h
atom_sub.h
atom_xchg.h
include/clc/cl_khr_local_int32_extended_atomics/
atom_and.h
atom_max.h
atom_min.h
atom_or.h
atom_xor.h
include/clc/common/
degrees.h
degrees.inc
mix.h
mix.inc
radians.h
radians.inc
sign.h
smoothstep.h
smoothstep.inc
step.h
step.inc
include/clc/explicit_fence/explicit_memory_fence.h
include/clc/float/definitions.h
include/clc/geometric/
cross.h
distance.h
distance.inc
dot.h
dot.inc
fast_distance.h
fast_distance.inc
fast_length.h
fast_length.inc
fast_normalize.h
fast_normalize.inc
floatn.inc
length.h
length.inc
normalize.h
normalize.inc
include/clc/image/
image.h
image_defines.h
include/clc/integer/
abs.h
abs.inc
abs_diff.h
abs_diff.inc
add_sat.h
add_sat.inc
clz.h
clz.inc
definitions.h
gentype.inc
hadd.h
hadd.inc
integer-gentype.inc
mad24.h
mad24.inc
mad_hi.h
mad_sat.h
mad_sat.inc
mul24.h
mul24.inc
mul_hi.h
mul_hi.inc
popcount.h
rhadd.h
rhadd.inc
rotate.h
rotate.inc
sub_sat.h
sub_sat.inc
unary.inc
upsample.h
include/clc/math/
acos.h
acosh.h
acospi.h
asin.h
asinh.h
asinpi.h
atan.h
atan2.h
atan2pi.h
atanh.h
atanpi.h
binary_decl.inc
binary_decl_tt.inc
cbrt.h
ceil.h
copysign.h
cos.h
cosh.h
cospi.h
erf.h
erfc.h
exp.h
exp10.h
exp2.h
expm1.h
fabs.h
fdim.h
floor.h
fma.h
fmax.h
fmin.h
fmod.h
fract.h
fract.inc
frexp.h
frexp.inc
gentype.inc
half_cos.h
half_divide.h
half_exp.h
half_exp10.h
half_exp2.h
half_log.h
half_log10.h
half_log2.h
half_powr.h
half_recip.h
half_rsqrt.h
half_sin.h
half_sqrt.h
half_tan.h
hypot.h
ilogb.h
ilogb.inc
ldexp.h
ldexp.inc
lgamma.h
lgamma_r.h
lgamma_r.inc
log.h
log10.h
log1p.h
log2.h
logb.h
mad.h
maxmag.h
minmag.h
modf.h
modf.inc
nan.h
nan.inc
native_cos.h
native_divide.h
native_exp.h
native_exp10.h
native_exp2.h
native_log.h
native_log10.h
native_log2.h
native_powr.h
native_recip.h
native_rsqrt.h
native_sin.h
native_sqrt.h
native_tan.h
nextafter.h
pow.h
pown.h
pown.inc
powr.h
remainder.h
remquo.h
remquo.inc
rint.h
rootn.h
rootn.inc
round.h
rsqrt.h
sin.h
sincos.h
sincos.inc
sinh.h
sinpi.h
sqrt.h
tan.h
tanh.h
tanpi.h
ternary_decl.inc
tgamma.h
trunc.h
unary_decl.inc
include/clc/misc/
shuffle.h
shuffle2.h
include/clc/relational/
all.h
any.h
binary_decl.inc
bitselect.h
bitselect.inc
floatn.inc
isequal.h
isfinite.h
isgreater.h
isgreaterequal.h
isinf.h
isless.h
islessequal.h
islessgreater.h
isnan.h
isnormal.h
isnotequal.h
isordered.h
isunordered.h
select.h
select.inc
signbit.h
unary_decl.inc
include/clc/shared/
clamp.h
clamp.inc
max.h
max.inc
min.h
min.inc
vload.h
vstore.h
include/clc/synchronization/
barrier.h
cl_mem_fence_flags.h
include/clc/workitem/
get_global_id.h
get_global_offset.h
get_global_size.h
get_group_id.h
get_local_id.h
get_local_size.h
get_num_groups.h
get_work_dim.h
lib/pkgconfig/libclc.pc
share/clc/
amdgcn--amdhsa.bc
aruba-r600--.bc
barts-r600--.bc
bonaire-amdgcn--.bc
bonaire-amdgcn-mesa-mesa3d.bc
caicos-r600--.bc
carrizo-amdgcn--.bc
carrizo-amdgcn-mesa-mesa3d.bc
cayman-r600--.bc
cedar-r600--.bc
clspv--.bc
clspv64--.bc
cypress-r600--.bc
fiji-amdgcn--.bc
fiji-amdgcn-mesa-mesa3d.bc
gfx1010-amdgcn--.bc
gfx1010-amdgcn-mesa-mesa3d.bc
gfx1011-amdgcn--.bc
gfx1011-amdgcn-mesa-mesa3d.bc
gfx1012-amdgcn--.bc
gfx1012-amdgcn-mesa-mesa3d.bc
gfx1013-amdgcn--.bc
gfx1013-amdgcn-mesa-mesa3d.bc
gfx1030-amdgcn--.bc
gfx1030-amdgcn-mesa-mesa3d.bc
gfx1031-amdgcn--.bc
gfx1031-amdgcn-mesa-mesa3d.bc
gfx1032-amdgcn--.bc
gfx1032-amdgcn-mesa-mesa3d.bc
gfx1033-amdgcn--.bc
gfx1033-amdgcn-mesa-mesa3d.bc
gfx1034-amdgcn--.bc
gfx1034-amdgcn-mesa-mesa3d.bc
gfx1035-amdgcn--.bc
gfx1035-amdgcn-mesa-mesa3d.bc
gfx1036-amdgcn--.bc
gfx1036-amdgcn-mesa-mesa3d.bc
gfx1100-amdgcn--.bc
gfx1100-amdgcn-mesa-mesa3d.bc
gfx1101-amdgcn--.bc
gfx1101-amdgcn-mesa-mesa3d.bc
gfx1102-amdgcn--.bc
gfx1102-amdgcn-mesa-mesa3d.bc
gfx1103-amdgcn--.bc
gfx1103-amdgcn-mesa-mesa3d.bc
gfx1150-amdgcn--.bc
gfx1150-amdgcn-mesa-mesa3d.bc
gfx1151-amdgcn--.bc
gfx1151-amdgcn-mesa-mesa3d.bc
gfx1200-amdgcn--.bc
gfx1200-amdgcn-mesa-mesa3d.bc
gfx1201-amdgcn--.bc
gfx1201-amdgcn-mesa-mesa3d.bc
gfx602-amdgcn--.bc
gfx602-amdgcn-mesa-mesa3d.bc
gfx705-amdgcn--.bc
gfx705-amdgcn-mesa-mesa3d.bc
gfx805-amdgcn--.bc
gfx805-amdgcn-mesa-mesa3d.bc
gfx900-amdgcn--.bc
gfx900-amdgcn-mesa-mesa3d.bc
gfx902-amdgcn--.bc
gfx902-amdgcn-mesa-mesa3d.bc
gfx904-amdgcn--.bc
gfx904-amdgcn-mesa-mesa3d.bc
gfx906-amdgcn--.bc
gfx906-amdgcn-mesa-mesa3d.bc
gfx908-amdgcn--.bc
gfx908-amdgcn-mesa-mesa3d.bc
gfx909-amdgcn--.bc
gfx909-amdgcn-mesa-mesa3d.bc
gfx90a-amdgcn--.bc
gfx90a-amdgcn-mesa-mesa3d.bc
gfx90c-amdgcn--.bc
gfx90c-amdgcn-mesa-mesa3d.bc
gfx940-amdgcn--.bc
gfx940-amdgcn-mesa-mesa3d.bc
gfx941-amdgcn--.bc
gfx941-amdgcn-mesa-mesa3d.bc
gfx942-amdgcn--.bc
gfx942-amdgcn-mesa-mesa3d.bc
hainan-amdgcn--.bc
hainan-amdgcn-mesa-mesa3d.bc
hawaii-amdgcn--.bc
hawaii-amdgcn-mesa-mesa3d.bc
hemlock-r600--.bc
iceland-amdgcn--.bc
iceland-amdgcn-mesa-mesa3d.bc
juniper-r600--.bc
kabini-amdgcn--.bc
kabini-amdgcn-mesa-mesa3d.bc
kaveri-amdgcn--.bc
kaveri-amdgcn-mesa-mesa3d.bc
mullins-amdgcn--.bc
mullins-amdgcn-mesa-mesa3d.bc
nvptx--.bc
nvptx--nvidiacl.bc
nvptx64--.bc
nvptx64--nvidiacl.bc
oland-amdgcn--.bc
oland-amdgcn-mesa-mesa3d.bc
palm-r600--.bc
pitcairn-amdgcn--.bc
pitcairn-amdgcn-mesa-mesa3d.bc
polaris10-amdgcn--.bc
polaris10-amdgcn-mesa-mesa3d.bc
polaris11-amdgcn--.bc
polaris11-amdgcn-mesa-mesa3d.bc
redwood-r600--.bc
spirv-mesa3d-.spv
spirv64-mesa3d-.spv
stoney-amdgcn--.bc
stoney-amdgcn-mesa-mesa3d.bc
sumo-r600--.bc
sumo2-r600--.bc
tahiti-amdgcn--.bc
tahiti-amdgcn-mesa-mesa3d.bc
tonga-amdgcn--.bc
tonga-amdgcn-mesa-mesa3d.bc
tongapro-amdgcn--.bc
tongapro-amdgcn-mesa-mesa3d.bc
turks-r600--.bc
verde-amdgcn--.bc
verde-amdgcn-mesa-mesa3d.bc
[FILE:528:patches/patch-CMakeLists.txt]
--- CMakeLists.txt.orig 2024-05-01 22:56:33 UTC
+++ CMakeLists.txt
@@ -154,7 +154,7 @@ set( tahiti_aliases pitcairn verde oland
# pkg-config file
configure_file( libclc.pc.in libclc.pc @ONLY )
-install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig" )
+install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" )
install( DIRECTORY generic/include/clc DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" )
if( ENABLE_RUNTIME_SUBNORMAL )