Skip to content

Commit

Permalink
Add clinfo for opencl platform checking
Browse files Browse the repository at this point in the history
Tracked-On: OAM-117839

Signed-off-by: Mi, Yanfeng <[email protected]>
  • Loading branch information
Yanfeng-Mi committed Apr 28, 2024
1 parent f10be3c commit 31b0a04
Show file tree
Hide file tree
Showing 3 changed files with 850 additions and 0 deletions.
1 change: 1 addition & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ build = [
"libOpenCL.bp",
"libIcdLog.bp",
"libOpenCLDriverStub.bp",
"clinfo.bp",
]
34 changes: 34 additions & 0 deletions clinfo.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cc_binary {
name: "clinfo",

vendor: true,

defaults: [
"OpenCL-ICD-Loader-defaults",
],

srcs: [
"clinfo/OpenCLInfo.cpp",
],

cflags: [
"-O3",
"-DNDEBUG",
"-DCL_TARGET_OPENCL_VERSION=300",
],

cppflags: [

],

local_include_dirs: [
],

shared_libs: [
"libOpenCL",
],

static_libs: [
],

}
Loading

0 comments on commit 31b0a04

Please sign in to comment.