Håvard Ose Nordstrand 4 年之前
父节点
当前提交
17bf2fd401
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      se/hpc/cuda.md

+ 1 - 0
se/hpc/cuda.md

@@ -121,6 +121,7 @@ breadcrumbs:
 ### Miscellanea
 
 - When transferring lots of small data arrays, try to combine them. For strided data, try to use `cudaMemcpy2D` or `cudaMemcpy3D`. Otherwise, try to copy the small arrays into a single, temporary, pinned array.
+- For getting device attributes/properties, `cudaDeviceGetAttribute` is significantly faster than `cudaGetDeviceProperties`.
 
 ## Tools