r/vulkan • • Jun 18 '22

AMD .vs. Nvidia Vulkan Driver choice

This is interesting. AMD and Nvidia are using different strategies on this . Apparently Nvidia is neat ......

[EDIT] : Add the AMD discrete one as well.

1 Upvotes

15 comments sorted by

12

u/K900_ Jun 18 '22

You're comparing a discrete GPU to an integrated one.

-3

u/Ok_Listen_7383 Jun 18 '22

Yes, my bad. But an iGPU should have even less abstract types compared to the discrete one, right?

4

u/K900_ Jun 18 '22

No, not at all. iGPUs share memory with the host, so their memory hierarchy is completely different.

-3

u/Ok_Listen_7383 Jun 18 '22

Let us see the 6900XT, which is a discrete card . All I was trying to communicate is why AMD choose so complicated heap compared to the Nvidia's neat one

I edit the origin post to attach 6800XT as well

7

u/K900_ Jun 18 '22

So? You have 16GB of GPU memory, 32GB of CPU memory, and 256MB of BAR, which is transparently visible from both. If you enable resizable BAR (a.k.a. Smart Access Memory in AMD's marketing terms), you'll see the entire GPU memory be one heap.

Edit: here's my report with SAM enabled: http://vulkan.gpuinfo.org/displayreport.php?id=15613#memory

0

u/Ok_Listen_7383 Jun 18 '22 edited Jun 18 '22

Thanks. With SAM enabled, it makes more sense since you have one CPU and one GPU heaps. The sub memory type within the heaps are addressing the visible issues across GPU and CPU.

But Nvidia by default (let us say ampere afterwards) has "SAM" anyway?

2

u/K900_ Jun 18 '22

Nvidia may or may not have resizable BAR, but I'm not sure the driver exposes the BAR as its own heap even if it is smaller.

1

u/[deleted] Jun 18 '22

My motherboard is too old to have resizable BAR support and I have three heaps available.

3

u/Botondar Jun 18 '22

I'm not sure what your post is actually about but the "neatness" in the layout comes from the schema version that the Vulkan caps viewer used to generate the JSON with. If you were to group the memory info on the left by the heaps, you'd get a similarly "neat" picture as on the right.

If you're referring to the fact that the AMD card exposes more memory heaps and types than the Nvidia card, that's something that's specific to the GPU, not the vendor. For example my GTX 970 has 7 memory types without any flags in the host heap.

-2

u/Ok_Listen_7383 Jun 18 '22

I think that is up to the driver decision

2

u/HavocInferno Jun 18 '22

That's just an iGPU with shared memory vs a dGPU with its own memory. Though, yes, AMD do have at least one more memory heap/type they expose explicitly, if I recall.

-12

u/Adventurous-Web917 Jun 18 '22

In my opinion, if you need defered rendering, choose amd will support more extension; And if you will need to develope ray tracing, I will perfer to choose nvidia.

3

u/[deleted] Jun 18 '22

if you need defered rendering, choose amd will support more extension

What is this based on?

-1

u/Adventurous-Web917 Jun 18 '22

Oops, that is a typo, I want to type deferred operation, sorry about it. :(

1

u/[deleted] Jun 18 '22

Again, I'm still wondering what you are talking about.

I assume VK_KHR_deferred_host_operations. It is on NVIDIA, and the only things it works with right now are VK_KHR_acceleration_structure and VK_KHR_ray_tracing_pipeline, both of which are also on NVIDIA.