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
Bazel bring up for ROCm #10703
Comments
Could you try to make the minimal change that exhibits your year. Unfortunately, we have many issues and your commit is over 1296 lines. |
Hi, |
I am unfortunately far from a bazel expert, but @jart may have some suggestions. |
I'm noticing you added this code: # Macros for building CUDA code.
def if_rocm(if_true, if_false = []):
return select({
"@local_config_rocm//rocm:using_hcc": if_true,
"//conditions:default": if_false
}) What is native.new_http_archive(
name = "local_config_rocm",
# ... |
Huh. Didn't know that. I'll add |
Feel free to ping this bug again if you get stuck on Bazel. If you're writing a feature for TensorFlow, then I'm happy to support you. |
Hi, |
Have you taken a look into cuda_configure.bzl. We've got a lot of code for configuring cuda in our build process. I'm not familiar with ROCm but if it's AMD's version of CUDA, we'd love to support it, but I must warn you that it would most likely be a highly nontrivial undertaking. |
Hi @jart , |
Hi @jart,
|
@jart, this does seem like a Bazel issue; PTAL when you have a moment. |
@adityaatluri I would like to support enabling ROCm backend for XLA. |
Hi @chanil1218 You are most welcome in enabling ROCm XLA backend. We are actually waiting for CLA approval from our legal team. We would love to have bazel stuff figured out before implementing actual code. |
Hi, Code: The build instructions are here: I am getting the following error: $ bazel build --config=opt --config=rocm //tensorflow/tools/pip_package:build_pip_package
ERROR: no such package '@local_config_rocm//': Traceback (most recent call last):
File "/home/aditya/tensorflow/third_party/gpus/rocm_configure.bzl", line 555
_create_local_rocm_repository(repository_ctx)
File "/home/aditya/tensorflow/third_party/gpus/rocm_configure.bzl", line 506, in _create_local_rocm_repository
_tpl(repository_ctx, "rocm:build_defs.b...", ...)})
File "/home/aditya/tensorflow/third_party/gpus/rocm_configure.bzl", line 238, in _tpl
repository_ctx.template(out, Label(("//third_party/gpus/%s...)), ...)
Unable to load package for //third_party/gpus/rocm:build_defs.bzl.tpl: not found.
INFO: Elapsed time: 0.301s FAILED: Build did NOT complete successfully (0 packages loaded)
|
@cy89 can you help me resolve this issue? Thanks! |
It has been 14 days with no activity and the |
1 similar comment
It has been 14 days with no activity and the |
Nagging Awaiting TensorFlower: It has been 14 days with no activity and the |
2 similar comments
Nagging Awaiting TensorFlower: It has been 14 days with no activity and the |
Nagging Awaiting TensorFlower: It has been 14 days with no activity and the |
@adityaatluri although this issue appears stale, I thought I'd let you know the https://github.com/ROCmSoftwarePlatform/tensorflow links are dead |
@Mandrewoid I am guessing this is the new link https://github.com/ROCmSoftwarePlatform/hiptensorflow |
Nagging Awaiting TensorFlower: It has been 14 days with no activity and the |
Nagging Assignee @aselle: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly. |
Hi,
I am trying to add new backend to tensorflow. As a first step, I started changing bazel files around (Commit here). When I enable XLA + ROCM during configure, and run
bazel build -s --config=opt --config=rocm //tensorflow/tools/pip_package:build_pip_package
, I am getting the following error:It would be great if someone can parse the commit mentioned and suggest changes.
Thank you!
The text was updated successfully, but these errors were encountered: