mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-26 06:10:15 +08:00
Only use dGPU in this test
This commit is contained in:
parent
170b8348a3
commit
be9856e4db
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@ -111,18 +111,8 @@ jobs:
|
|||||||
pylint --rcfile=.pylintrc comfy/ comfy_extras/ comfy_api/ comfy_api_nodes/
|
pylint --rcfile=.pylintrc comfy/ comfy_extras/ comfy_api/ comfy_api_nodes/
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
# always select dgpu
|
# only use dGPU
|
||||||
dgpu_ids=$(rocminfo | awk '/DeviceID:/ {id=$2} /Device Type:/ {if ($3 == "DISCRETE") print id}' | sort -n)
|
export HIP_VISIBLE_DEVICES=1
|
||||||
igpu_ids=$(rocminfo | awk '/DeviceID:/ {id=$2} /Device Type:/ {if ($3 == "INTEGRATED") print id}' | sort -n)
|
|
||||||
all_ids="$dgpu_ids $igpu_ids"
|
|
||||||
ordered_list=$(echo "${all_ids// /,} | sed 's/,$//'")
|
|
||||||
if [ -z "$ordered_list" ]; then
|
|
||||||
echo "Warning: No ROCm devices found."
|
|
||||||
else
|
|
||||||
export HIP_VISIBLE_DEVICES="$ordered_list"
|
|
||||||
fi
|
|
||||||
echo "HIP_VISIBLE_DEVICES set to: $HIP_VISIBLE_DEVICES"
|
|
||||||
cd ${GITHUB_WORKSPACE}/src
|
|
||||||
pytest -v tests/unit
|
pytest -v tests/unit
|
||||||
build_and_execute_macos:
|
build_and_execute_macos:
|
||||||
environment: "Testing"
|
environment: "Testing"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user