1package { 2 default_applicable_licenses: ["clpeak_license"], 3 default_visibility: ["//visibility:public"], 4} 5 6license { 7 name: "clpeak_license", 8 visibility: [":__subpackages__"], 9 license_kinds: ["SPDX-license-identifier-Apache-2.0"], 10 license_text: ["LICENSE"], 11} 12 13cc_benchmark { 14 name: "clpeak", 15 srcs: [ 16 "src/clpeak.cpp", 17 "src/common.cpp", 18 "src/compute_char.cpp", 19 "src/compute_dp.cpp", 20 "src/compute_hp.cpp", 21 "src/compute_integer.cpp", 22 "src/compute_integer_fast.cpp", 23 "src/compute_short.cpp", 24 "src/compute_sp.cpp", 25 "src/entry.cpp", 26 "src/global_bandwidth.cpp", 27 "src/kernel_latency.cpp", 28 "src/logger.cpp", 29 "src/options.cpp", 30 "src/transfer_bandwidth.cpp", 31 ], 32 cflags: [ 33 "-DVERSION_STR=\"1.1.2\"", 34 "-Wno-error=logical-not-parentheses", 35 "-Wno-error=reorder-ctor", 36 "-fexceptions", 37 ], 38 shared_libs: [ 39 "//external/OpenCL-ICD-Loader:libOpenCL", 40 ], 41 local_include_dirs: [ 42 "include", 43 "src/kernels", 44 ], 45 header_libs: ["OpenCL-CLHPP"], 46 soc_specific: true, 47} 48