OSDN Git Service

amdgpu: A new option to choose which device to run most tests
authorAlex Xie <AlexBin.Xie@amd.com>
Tue, 24 Jan 2017 22:29:51 +0000 (17:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:55:28 +0000 (11:55 -0500)
commit12dd7a2e9cfa20a3022cfe091e824b09c0bfb9d1
tree12b9d90d93cef2fbd3565bcf1b9e08da31035424
parent5e0f7c5c65ca6714cd7352d72303ec2cbec35cb5
amdgpu: A new option to choose which device to run most tests

This can be used to test multiple GPUs

v2: Use PCI bus ID and optional PCI device ID to choose device
    Add an option to display information of AMDGPU devices

Tested:
   ./amdgpu_test -p
   ./amdgpu_test
   ./amdgpu_test -b 1 #fail as expected
   ./amdgpu_test -b 6 #pass
   ./amdgpu_test -b -d 1 #fail as expected
   ./amdgpu_test -b -d 0 #pass

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/amdgpu_test.c