! \brief Enable fine-grained system SVM. * * \note It is only possible to enable fine-grained system SVM if all devices * in the context associated with kernel support it. * * \param svmEnabled True if fine-grained system SVM is requested. False otherwise. * \return CL_SUCCESS if the function was executed succesfully. CL_INVALID_OPERATION * if no d
| 5946 | * \see clSetKernelExecInfo |
| 5947 | */ |
| 5948 | cl_int enableFineGrainedSystemSVM(bool svmEnabled) |
| 5949 | { |
| 5950 | cl_bool svmEnabled_ = svmEnabled ? CL_TRUE : CL_FALSE; |
| 5951 | return detail::errHandler( |
| 5952 | ::clSetKernelExecInfo( |
| 5953 | object_, |
| 5954 | CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM, |
| 5955 | sizeof(cl_bool), |
| 5956 | &svmEnabled_ |
| 5957 | ) |
| 5958 | ); |
| 5959 | } |
| 5960 | |
| 5961 | template<int index, int ArrayLength, class D, typename T0, typename T1, typename... Ts> |
| 5962 | void setSVMPointersHelper(std::array<void*, ArrayLength> &pointerList, const pointer<T0, D> &t0, const pointer<T1, D> &t1, Ts & ... ts) |
nothing calls this directly
no test coverage detected