示例#1
0
func DeviceSetCacheConfig(cconfig CacheConfig) {
	err := Error(C.cudaDeviceSetCacheConfig(uint32(cconfig)))
	if err != Success {
		panic(err)
	}
	return
}
示例#2
0
文件: device.go 项目: abduld/cuda-go
// 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)
	}
}