// 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) } }
// Reset the current GPU device. func DeviceReset() { err := cu.Result(C.cudaDeviceReset()) if err != cu.SUCCESS { panic(err) } }