コード例 #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)
	}
}