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

build failed with Python3.11 ROCM6.1.0 BAZEL 7.1.1n gfx1100 #2531

Open
gitleibin opened this issue May 7, 2024 · 0 comments
Open

build failed with Python3.11 ROCM6.1.0 BAZEL 7.1.1n gfx1100 #2531

gitleibin opened this issue May 7, 2024 · 0 comments

Comments

@gitleibin
Copy link

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

v2.14.0-4248-g3448956e87e 2.14.0.600

Custom code

Yes

OS platform and distribution

No response

Mobile device

No response

Python version

3.11

Bazel version

7.1.1

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

  hdrs = glob([
        "rocm/include/hipcub/**",
        "rocm/include/rocprim/**",
    ]),

for these code I had modify it as rocm/include/hipcub/. rocm/include/hipcub/*.hpp
but it doesn't work
How to set the --incompatible_disallow_empty_glob with blaze

INFO: Found applicable config definition build:linux in file /home/xxxxx/.bazelrc: --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
WARNING: The following configs were expanded more than once: [rocm, rocm_base, no_tfrt, release_cpu_linux_base]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
ERROR: Traceback (most recent call last):
	File "/home/xxxxx/.cache/bazel/_bazel_leibin/7483686ba524c14c314b63f52f079dca/external/local_config_rocm/rocm/BUILD", line 132, column 16, in <toplevel>
		hdrs = glob([
Error in glob: glob pattern 'rocm/include/hipcub/**' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
ERROR: /home/xxxxxx/gitRepo/tensorflow-upstream/tensorflow/BUILD:1177:21: errors encountered resolving select() keys for //tensorflow:libtensorflow_framework.so.2.17.0
ERROR: Analysis of target '//tensorflow/tools/pip_package:wheel' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.071s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED: 
    Fetching repository @@flatbuffers; starting
    Fetching repository @@snappy; starting
    Fetching repository @@absl_py; starting
    Fetching repository @@com_google_absl; starting
    Fetching https://storage.googleapis.com/.../google/snappy/archive/984b191f0fefdeb17050b42a90b7625999c13b8d.tar.gz; Checking in SHA-256 cache

Standalone code to reproduce the issue

Error in glob: glob pattern 'rocm/include/hipcub/**' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).

ERROR: /home/xxxxxx/gitRepo/tensorflow-upstream/tensorflow/BUILD:1177:21: errors encountered resolving select() keys for //tensorflow:libtensorflow_framework.so.2.17.0

Relevant log output

d twice and may lead to unexpected behavior.
ERROR: Traceback (most recent call last):
	File "/home/leibin/.cache/bazel/_bazel_leibin/7483686ba524c14c314b63f52f079dca/external/local_config_rocm/rocm/BUILD", line 132, column 16, in <toplevel>
		hdrs = glob([
Error in glob: glob pattern 'rocm/include/hipcub/*.hpp' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
ERROR: /home/leibin/gitRepo/tensorflow-upstream/tensorflow/BUILD:1177:21: errors encountered resolving select() keys for //tensorflow:libtensorflow_framework.so.2.17.0
ERROR: Analysis of target '//tensorflow/tools/pip_package:wheel' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.071s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED: 
    Fetching repository @@flatbuffers; starting
    Fetching repository @@snappy; starting
    Fetching repository @@absl_py; starting
    Fetching repository @@com_google_absl; starting
    Fetching https://storage.googleapis.com/.../google/snappy/archive/984b191f0fefdeb17050b42a90b7625999c13b8d.tar.gz; Checking in SHA-256 cache
@gitleibin gitleibin changed the title build failed with build failed with Python3.11 ROCM6.1.0 BAZEL 7.1.1 May 10, 2024
@gitleibin gitleibin changed the title build failed with Python3.11 ROCM6.1.0 BAZEL 7.1.1 build failed with Python3.11 ROCM6.1.0 BAZEL 7.1.1n gfx1100 May 10, 2024
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