【问题标题】:How to get the device architecture inside a kernel?如何在内核中获取设备架构?
【发布时间】:2015-08-25 21:06:08
【问题描述】:

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

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

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

编译失败。

【问题讨论】:

    标签: aleagpu


    【解决方案1】:

    其实let blockReducer = BlockReduce.RakingCommutativeOnly&lt;float32&gt;(dims,worker.Device.Arch)应该在内核之外调用。那么就完全没有问题了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-01-31
      • 2014-05-26
      • 1970-01-01
      • 1970-01-01
      • 2015-01-27
      • 2013-11-20
      相关资源
      最近更新 更多