llvm
9f6512e5 - [UR][CUDA] Add P2P error mapping and fix multi-device test

Commit
28 days ago
[UR][CUDA] Add P2P error mapping and fix multi-device test Fix CUDA adapter to properly map P2P access errors: - Map CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED to UR_RESULT_ERROR_INVALID_OPERATION - Map CUDA_ERROR_PEER_ACCESS_NOT_ENABLED to UR_RESULT_ERROR_INVALID_OPERATION Initialize P2P access in urEnqueueKernelLaunchIncrementMultiDeviceTest: - Add urUsmP2PEnablePeerAccessExp calls in SetUp() for cross-device memcpy - Add urUsmP2PDisablePeerAccessExp calls in TearDown() for cleanup - Skip P2P operations for duplicate device handles (single GPU case) - Accept INVALID_OPERATION for already-enabled or unsupported pairs This fixes test failures on multi-GPU CUDA systems where P2P must be explicitly enabled before cross-device USM memory operations. Fixes #19033
Author
Committer
Parents
Loading