예제 #1
0
파일: device.go 프로젝트: LStoleriu/hotspin
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)
	}
}