I'm writing code for diagnostics and I need the to determine what GPUs/Graphics Cards are currently plugged in to a given machine. I can do this fine for Windows and even Linux, but macOS is a different beast all together and I'm completely failing to get this working. Worse yet, there doesn't seem to be any good attempts that I can find that aren't horribly out of date and non-functional. For example, I found this: Getting graphic card information in objective C but when I run this code on a Mac Studio I have, I end up with "Unknown, Unknown". Same with am M1 Laptop. Does anyone have a modern way of getting this information? I would like to get ALL of the GPUs/Graphics Cards currently plugged in, not just the current one being used for display.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744330228a4568850.html
评论列表(0条)