Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to include new_repository headers #250

Open
wangzy0327 opened this issue Jun 28, 2022 · 0 comments
Open

how to include new_repository headers #250

wangzy0327 opened this issue Jun 28, 2022 · 0 comments

Comments

@wangzy0327
Copy link

how to include ONEAPI_HEADERS in BUILD file ?

my bazel source file as follow:

ref.bzl
ONEAPI_HEADERS = glob([    "include/**",])
ONEAPI_LIBRARY = glob([    "lib/*",])
cc_import( 
name = "oneAPI", 
 hdrs = ONEAPI_HEADERS,
shared_library = "lib/libsycl.so", 
visibility = ["//visibility:public"],)
BUILD.
cc_binary( 
name = "starter", 
srcs = [ 
 "getting_started.cpp",  
 "example_utils.hpp"   
 ], 
 deps = [  
  "@oneDNN//:oneDNN", 
  "@oneAPI//:oneAPI"
 ],  
  copts = [  
  "-I/home/wzy/sycl_workspace/oneDNN-cuda-debug/include",  
      "-I/home/wzy/sycl_workspace/build-cuda/include",  
      "-I/home/wzy/sycl_workspace/build-cuda/include/sycl",    ],  
 
 linkstatic = 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant