cpu/gpu contents

Ask your beginner questions here.
Post Reply
Posts: 18
Joined: Thu Aug 09, 2018 2:14 pm

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.
User avatar
Posts: 465
Joined: Sat Mar 13, 2010 9:14 pm
Location: Czech Republic

Sun Oct 14, 2018 8:28 pm

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.
Post Reply