-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(//plugins): Readding cuBLAS BUILD to allow linking of libnvinfer_…
…plugin on Jetson Signed-off-by: Naren Dasan <naren@narendasan.com>
- Loading branch information
1 parent
0a3258d
commit a8008f4
Showing
3 changed files
with
66 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
config_setting( | ||
name = "aarch64_linux", | ||
constraint_values = [ | ||
"@platforms//cpu:aarch64", | ||
"@platforms//os:linux", | ||
], | ||
) | ||
|
||
cc_library( | ||
name = "cublas_headers", | ||
hdrs = ["include/cublas.h"] + glob(["include/cublas+.h"]), | ||
includes = ["include/"], | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
cc_import( | ||
name = "cublas_lib", | ||
shared_library = select({ | ||
":aarch64_linux": "lib/aarch64-linux-gnu/libcublas.so", | ||
"//conditions:default": "lib/x86_64-linux-gnu/libcublas.so", | ||
}), | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
cc_import( | ||
name = "cublas_lt_lib", | ||
shared_library = select({ | ||
":aarch64_linux": "lib/aarch64-linux-gnu/libcublasLt.so", | ||
"//conditions:default": "lib/x86_64-linux-gnu/libcublasLt.so", | ||
}), | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
cc_library( | ||
name = "cublas", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"cublas_headers", | ||
"cublas_lib", | ||
"cublas_lt_lib", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters