func DeviceSetCacheConfig(cconfig CacheConfig) { err := Error(C.cudaDeviceSetCacheConfig(uint32(cconfig))) if err != Success { panic(err) } return }
// Set preference for more cache or shared memory. func DeviceSetCacheConfig(cacheConfig FuncCache) { err := cu.Result(C.cudaDeviceSetCacheConfig(uint32(cacheConfig))) if err != cu.SUCCESS { panic(err) } }