支持cooperative kernel launch的显卡有哪些?

  • 4 replies
  • 24 views
支持cooperative kernel launch的显卡有哪些?
« 于: 十二月 30, 2018, 10:41:27 am »
支持cooperative  kernel launch的显卡有哪些?
(GTX1060不支持。。。)

(无标题)
« 回复 #1 于: 一月 02, 2019, 12:15:51 pm »
换系统。别在Windows上尝试。

GTX1080在Windows上不支持,Linux上可以,这是我之前的测试。但是NV的文档里没有说明系统要求这一点。

同样的结论应当对1060也有效。


(无标题)
« 回复 #2 于: 一月 14, 2019, 04:17:30 pm »

果然在Linux下就支持了

(无标题)
« 回复 #3 于: 一月 14, 2019, 04:43:15 pm »
/usr/local/cuda-9.2/samples/1_Utilities/deviceQuery$ ./deviceQuery
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 1060 6GB"
  CUDA Driver Version / Runtime Version          9.2 / 9.2
  CUDA Capability Major/Minor version number:    6.1
  Total amount of global memory:                 6076 MBytes (6371475456 bytes)
  (10) Multiprocessors, (128) CUDA Cores/MP:     1280 CUDA Cores
  GPU Max Clock rate:                            1709 MHz (1.71 GHz)
  Memory Clock rate:                             4004 Mhz
  Memory Bus Width:                              192-bit
  L2 Cache Size:                                 1572864 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
  Maximum Layered 1D Texture Size, (num) layers  1D=(32768), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(32768, 32768), 2048 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total number of registers available per block: 65536
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z): (2147483647, 65535, 65535)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and kernel execution:          Yes with 2 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  Device supports Unified Addressing (UVA):      Yes
  Device supports Compute Preemption:            Yes
  Supports Cooperative Kernel Launch:            Yes
  Supports MultiDevice Co-op Kernel Launch:      Yes
  Device PCI Domain ID / Bus ID / location ID:   0 / 1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

(无标题)
« 回复 #4 于: 一月 15, 2019, 05:03:37 pm »
    以下代码可以看显卡支持不支持cooperative kernel launch。
(Ubuntu18.10+Nvidia-driver-396+CUDA9.2+GTX1060测试通过)
#include
int main(int argc, char **argv)
{
   int dev = 0;
   cudaDeviceProp deviceProp = { 0 };
   cudaGetDeviceProperties(&deviceProp, dev);
   printf("deviceProp.cooperativeLaunch=%d\n", deviceProp.cooperativeLaunch);
   if (!deviceProp.cooperativeLaunch)
   {
      printf("Selected GPU (%d) does not support Cooperative Kernel Launch, Waiving the run\n", dev);
   }
   else
   {
      printf("Selected GPU (%d) supports Cooperative Kernel Launch!\n", dev);
   }
   return 0;
}