MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / enableFineGrainedSystemSVM

Method enableFineGrainedSystemSVM

include/CL/opencl.hpp:5948–5959  ·  view source on GitHub ↗

! \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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

errHandlerFunction · 0.85
clSetKernelExecInfoFunction · 0.85

Tested by

no test coverage detected