在 linux 上使用 locate deviceQuery 命令找到使用cuda预实现的sample程序 deviceQuery

在命令行执行 /home/amax/NVIDIA_CUDA-10.0_Samples/bin/x86_64/linux/release/deviceQuery 查看GPU的详细信息

其中Total amount of shared memory per block 显示每个block中的共享内存大小

Total amount of shared memory per block:       49152 bytes

 

参考:

https://blog.csdn.net/weixin_40005329/article/details/106853783

Logo

更多推荐