Lines Matching refs:bsvm
126 char* bsvm = (char *)clSVMAlloc(context, CL_MEM_READ_WRITE, global_size*sizeof(cl_uint), 16); in test_svm_migrate() local
127 if (bsvm == NULL) { in test_svm_migrate()
136 clSVMFree(context, bsvm); in test_svm_migrate()
144 error = clSetKernelArgSVMPointer(kernel, 1, (void*)bsvm); in test_svm_migrate()
162 …error = clEnqueueSVMMemFill(queues[0], (void *)bsvm, patt, sizeof(patt), global_size*sizeof(cl_uin… in test_svm_migrate()
171 char* ptrs[] = { asvm, bsvm, csvm }; in test_svm_migrate()
178 char *ptrs[] = { asvm+1, bsvm+3, csvm+5 }; in test_svm_migrate()
189 …error = clEnqueueSVMMap(queues[1], CL_FALSE, CL_MAP_WRITE, (void*)bsvm, global_size*sizeof(cl_uint… in test_svm_migrate()
225 memcpy((void *)bsvm, (void *)bmem, global_size*sizeof(cl_uint)); in test_svm_migrate()
232 error = clEnqueueSVMUnmap(queues[1], (void *)bsvm, 0, NULL, &evs[1]); in test_svm_migrate()
242 char *ptrs[] = { asvm+100, bsvm+17, csvm+1000, asvm+101, bsvm+19, csvm+1017 }; in test_svm_migrate()
254 char *ptrs[] = { asvm+8, bsvm+17, csvm+31, csvm+83 }; in test_svm_migrate()
266 char *ptrs[] = { asvm+64, asvm+128, bsvm+64, bsvm+128, csvm, csvm+64 }; in test_svm_migrate()
278 char *ptrs[] = { asvm, asvm, bsvm, csvm, csvm }; in test_svm_migrate()
292 …error = clEnqueueSVMMap(queues[1], CL_FALSE, CL_MAP_READ, (void*)bsvm, global_size*sizeof(cl_uint)… in test_svm_migrate()
311 ok &= check("memory b", (cl_uint *)bsvm, bmem, global_size); in test_svm_migrate()
315 void *ptrs[] = { asvm, bsvm, csvm }; in test_svm_migrate()
320 error = clEnqueueSVMUnmap(queues[1], (void *)bsvm, 0, NULL, &evs[1]); in test_svm_migrate()