cpu/gpu contents

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

cpu/gpu contents

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

User avatar
Vrtule
Posts: 461
Joined: Sat Mar 13, 2010 9:14 pm
Location: Czech Republic
Contact:

Re: cpu/gpu contents

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

Post Reply