A forum for reverse engineering, OS internals and malware analysis 

Ask your beginner questions here.
 #32182  by WhoPMi
 Sun Oct 14, 2018 7:08 pm
Hello everyone, i'd like to know one information about the function __cpuid(). Is there any equivalent of this function for gpus? and finally I'd like to know if there's any kind of API for the AMD gpus and if i can simulate an AMD on a NVIDIA to test some drivers. This is all, i hope you understand what i mean, sorry for my english. Thank you.
 #32185  by Vrtule
 Sun Oct 14, 2018 8:28 pm
Hello,
Is there any equivalent of this function for gpus?
For NVIDIA, you may use cudaGetDeviceCount and cudaGetDeviceProperties to get information about all CUDA-capable graphics cards installed. See this
https://stackoverflow.com/questions/568 ... ly-in-cuda

Since I worked only with CUDA, I cannot provide you with information about AMD GPUs unfortunately.