0

正如标题所要求的那样。两个都

let blockReducer = BlockReduce.RakingCommutativeOnly<float32>(dims,DeviceArch.Create("sm35"))

let blockReducer = BlockReduce.RakingCommutativeOnly<float32>(dims,worker.Device.Arch)

编译失败。

4

1 回答 1

0

实际上,let blockReducer = BlockReduce.RakingCommutativeOnly<float32>(dims,worker.Device.Arch)应该在内核之外调用。那么就完全没有问题了。

于 2015-08-25T10:48:26.587 回答