Skip to content

Commit 651e6aa

Browse files
ethanwee1pytorchmergebot
authored andcommitted
[ROCm] Remove benign warning about missing amdgpu.ids (pytorch#147791)
Fixes pytorch#144203. We build a custom libdrm when preparing our docker image. We attempt to locate the amdgpu.ids file relative to the python binary, but this is not possible for venv installs of pytorch when the python binary is a symlink. Not finding amdgpu.ids causes `torch.cuda.get_device_name()` to return "AMD Radeon Graphics" as a generic name instead of something specific such as "AMD Instinct MI250X / MI250". The libdrm warning is noisy, so we are removing it. Pull Request resolved: pytorch#147791 Approved by: https://github.com/jeffdaily
1 parent e5a1341 commit 651e6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/docker/common/install_rocm_drm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ index a5007ffc..13fa07fc 100644
115115
if (!fp) {
116116
- fprintf(stderr, "%s: %s\n", AMDGPU_ASIC_ID_TABLE,
117117
- strerror(errno));
118-
+ fprintf(stderr, "amdgpu.ids: No such file or directory\n");
118+
+ //fprintf(stderr, "amdgpu.ids: No such file or directory\n");
119119
return;
120120
}
121121

0 commit comments

Comments
 (0)