ac884527f4fff2e9755d91bf4534a45a2d202671
SWDEV-145570 - Check host_context when matching GPU device. - In CL#1766264, `host_context` is introduced for mGPU support. Need to match that context specially when trying to match GPU device context. The following tests passed: $ python test_dataloader.py TestDictDataLoader.test_pin_memory . ---------------------------------------------------------------------- Ran 1 test in 0.004s OK $ python test_dataloader.py TestDataLoader.test_sequential_pin_memory . ---------------------------------------------------------------------- Ran 1 test in 0.063s OK $ python test_dataloader.py TestDataLoader.test_shuffle_pin_memory . ---------------------------------------------------------------------- Ran 1 test in 0.174s OK $ python test_dataloader.py TestStringDataLoader.test_shuffle_pin_memory . ---------------------------------------------------------------------- Ran 1 test in 0.104s OK $ python test_torch.py TestTorch.test_pin_memory . ---------------------------------------------------------------------- Ran 1 test in 0.124s OK Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#52 edit
描述
无详细信息
语言
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
其它
1.1%