endif
_opencl = get_option('gallium-opencl')
-clover_cpp_std = []
if _opencl != 'disabled'
if not with_gallium
error('OpenCL Clover implementation requires at least one gallium driver.')
dep_spirv_tools = null_dep
dep_llvmspirvlib = null_dep
endif
-
- if host_machine.cpu_family().startswith('ppc') and cpp.compiles('''
- #if !defined(__VEC__) || !defined(__ALTIVEC__)
- #error "AltiVec not enabled"
- #endif''',
- name : 'Altivec')
- clover_cpp_std += ['cpp_std=gnu++11']
- endif
else
dep_clc = null_dep
dep_spirv_tools = null_dep
],
gnu_symbol_visibility : 'hidden',
dependencies : [dep_llvm, dep_elf, dep_llvmspirvlib],
- override_options : clover_cpp_std,
)
libclspirv = static_library(
cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args],
gnu_symbol_visibility : 'hidden',
dependencies : [dep_spirv_tools],
- override_options : clover_cpp_std,
)
libclnir = static_library(
dependencies : idep_nir,
cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args],
gnu_symbol_visibility : 'hidden',
- override_options : clover_cpp_std,
)
clover_files = files(
],
gnu_symbol_visibility : 'hidden',
link_with : [libclllvm, libclspirv, libclnir],
- override_options : clover_cpp_std,
)