openxla / xla

A machine learning compiler for GPUs, CPUs, and ML accelerators
Apache License 2.0
2.57k stars 401 forks source link

【test:se_gpu_pjrt_client_test】ERROR: No test targets were found, yet testing was requested #15054

Open FatJhon opened 1 month ago

FatJhon commented 1 month ago
  1. set env: export CUDA_PATH=/usr/local/cuda export PATH=$PATH:$CUDA_PATH/bin export PATH=/home/weight/tools/llvm-17.x/bin:$PATH

  2. compile: 1)../configure.py --backend=CUDA --nccl 2)bazelisk build --config=cuda --config=verbose_logs -s --verbose_failures //xla/... --jobs=30 --cxxopt=-v --strip=never --copt=-g --copt=-ggdb

  3. run test: bazelisk test //xla/pjrt/gpu:se_gpu_pjrt_client_test --nocheck_visibility --strip=never --copt=-g --copt=-ggdb --config=cuda

  4. result: WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior. WARNING: All specified test targets were excluded by filters ERROR: No test targets were found, yet testing was requested

how can i set target of cuda,thanks!

huhuiqi7 commented 1 month ago

same error.

cmd: bazel test --repo_env=HERMETIC_PYTHON_VERSION --test_output=all --spawn_strategy=sandboxed //xla/hlo/experimental/auto_sharding:auto_sharding_test --python_path=/root/miniconda3/envs/py39/bin/python --sandbox_debug