Maximum number of threads on each block. @return the maximum thread number.
()
| 184 | * @return the maximum thread number. |
| 185 | */ |
| 186 | public long maxThreadsPerBlock() { |
| 187 | TVMValue ret = APIInternal.get("runtime.GetDeviceAttr") |
| 188 | .pushArg(deviceType) |
| 189 | .pushArg(deviceId) |
| 190 | .pushArg(1) |
| 191 | .invoke(); |
| 192 | return ((TVMValueLong) ret).value; |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Number of threads that executes in concurrent. |