Home
last modified time | relevance | path

Searched refs:gpu_a (Results 1 – 2 of 2) sorted by relevance

/open-nvidia-gpu/kernel-open/nvidia-uvm/
H A Duvm_peer_identity_mappings_test.c132 uvm_gpu_t *gpu_a; in uvm_test_peer_identity_mappings() local
137 gpu_a = uvm_va_space_get_gpu_by_uuid(va_space, &params->gpuA); in uvm_test_peer_identity_mappings()
140 if (gpu_a == NULL || gpu_b == NULL) { in uvm_test_peer_identity_mappings()
145 if (gpu_a->parent->peer_copy_mode != gpu_b->parent->peer_copy_mode) { in uvm_test_peer_identity_mappings()
150 if (gpu_a->parent->peer_copy_mode != UVM_GPU_PEER_COPY_MODE_VIRTUAL) { in uvm_test_peer_identity_mappings()
156 if (!uvm_processor_mask_test(&va_space->can_access[uvm_id_value(gpu_a->id)], gpu_b->id) || in uvm_test_peer_identity_mappings()
157 uvm_processor_mask_test(&va_space->indirect_peers[uvm_id_value(gpu_a->id)], gpu_b->id)) { in uvm_test_peer_identity_mappings()
162 status = try_peer_access_remote_gpu_memory(gpu_a, gpu_b); in uvm_test_peer_identity_mappings()
166 status = try_peer_access_remote_gpu_memory(gpu_b, gpu_a); in uvm_test_peer_identity_mappings()
H A Duvm_push_test.c855 static bool can_do_peer_copies(uvm_va_space_t *va_space, uvm_gpu_t *gpu_a, uvm_gpu_t *gpu_b) in can_do_peer_copies() argument
857 …if (gpu_a == gpu_b || !uvm_processor_mask_test(&va_space->can_copy_from[uvm_id_value(gpu_a->id)], … in can_do_peer_copies()
863 if (uvm_gpus_are_indirect_peers(gpu_a, gpu_b)) in can_do_peer_copies()
875 uvm_gpu_t *gpu, *gpu_a, *gpu_b; in test_push_gpu_to_gpu() local
886 for_each_va_space_gpu(gpu_a, va_space) { in test_push_gpu_to_gpu()
888 if (can_do_peer_copies(va_space, gpu_a, gpu_b)) { in test_push_gpu_to_gpu()
924 for_each_va_space_gpu(gpu_a, va_space) { in test_push_gpu_to_gpu()
926 if (!can_do_peer_copies(va_space, gpu_a, gpu_b)) in test_push_gpu_to_gpu()
931 mem[uvm_id_value(gpu_a->id)], in test_push_gpu_to_gpu()
940 mem[uvm_id_value(gpu_a->id)]); in test_push_gpu_to_gpu()
[all …]