Skip to contentSkip to conversation

PCIe3 atomics requirement for amdkfd

DISCUSSION Tom Stellard 6 participants 9 messages Dec 19, 2017 – Jan 3, 2018 6 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): c2c34443-9ba1-661b-476d-b657a7ddfe85-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#2 lore raw

As I understand it, it would require changes in the ROCr Runtime and in the firmware (MEC microcode). It also changes the programming model, so it may affect certain applications or higher level language runtimes that rely on atomic operations.

Regards,
  Felix

Am 19.12.2017 um 16:04 schrieb Tom Stellard:

Quoted 11 lines

Hi,

How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd kernel driver? Is it possible to make modifications to the runtime/kernel driver to drop this requirement?

-Tom
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 3f7e6fed-8668-b469-8813-e6677cb980ca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#4 lore raw

Can the atomic ops work on the modified risers used for mining?

Quoted 25 lines · Felix Kühling

As I understand it, it would require changes in the ROCr Runtime and in the firmware (MEC microcode). It also changes the programming model, so it may affect certain applications or higher level language runtimes that rely on atomic operations.

Regards,
Felix

Am 19.12.2017 um 16:04 schrieb Tom Stellard:

Quoted 4 lines

Hi,

How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd kernel driver? Is it possible to make modifications to the

runtime/kernel

Quoted 7 lines

driver to drop this requirement?

-Tom
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Quoted 6 lines

_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CAHVSqQe1Tj+PnCR1h+HiHC=fXC81sUG4MXC7jWwmY+TomuU=9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw

Am 23.12.2017 um 17:26 schrieb Alexander Kjeldaas:

Quoted 1 line

 Can the atomic ops work on the modified risers used for mining?

If the PCI bridge on the riser supports PCIe 3 atomic routing, then yes.

Regards,
  Felix

Quoted 32 lines

On Dec 23, 2017 16:41, "Felix Kühling" <[email protected] <mailto:[email protected]>> wrote:

As I understand it, it would require changes in the ROCr Runtime and in
the firmware (MEC microcode). It also changes the programming model, so
it may affect certain applications or higher level language runtimes that rely on atomic operations.

Regards,
  Felix

Am 19.12.2017 um 16:04 schrieb Tom Stellard:
> Hi,
>
> How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd
> kernel driver?  Is it possible to make modifications to the
runtime/kernel
> driver to drop this requirement?
>
> -Tom
> _______________________________________________
> amd-gfx mailing list
> [email protected] <mailto:[email protected]> > https://lists.freedesktop.org/mailman/listinfo/amd-gfx
<https://lists.freedesktop.org/mailman/listinfo/amd-gfx>

Quoted 6 lines

_______________________________________________
amd-gfx mailing list
[email protected] <mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
<https://lists.freedesktop.org/mailman/listinfo/amd-gfx>

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#7 lore raw
In reply to a message not in the archive
Quoted 5 lines · Felix Kühling

As I understand it, it would require changes in the ROCr Runtime and in the firmware (MEC microcode). It also changes the programming model, so it may affect certain applications or higher level language runtimes that rely on atomic operations.

How does the MEC microcode know that it is running a ROCm workload as opposed to a graphics workload that doesn't require PCIe3 atomics. Is there a specific configuration bit that is set to indicate the ROCm programming model is needed?

-Tom

Quoted 4 lines

Regards,
Felix

Quoted 14 lines

Am 19.12.2017 um 16:04 schrieb Tom Stellard:

Quoted 11 lines

Hi,

How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd kernel driver? Is it possible to make modifications to the runtime/kernel driver to drop this requirement?

-Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): a5d6072b-6fea-f161-3773-50f58766ed45-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#9 lore raw

I think currently atomic Ops are only used in AQL package which is only available for ROCm , graphics workload will not use AQL package.

Regards
Shaoyun.liu

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Tom Stellard
Sent: Wednesday, January 03, 2018 9:57 AM
To: Felix Kühling; [email protected]
Cc: Kuehling, Felix
Subject: Re: PCIe3 atomics requirement for amdkfd

Quoted 5 lines · Felix Kühling

As I understand it, it would require changes in the ROCr Runtime and in the firmware (MEC microcode). It also changes the programming model, so it may affect certain applications or higher level language runtimes that rely on atomic operations.

How does the MEC microcode know that it is running a ROCm workload as opposed to a graphics workload that doesn't require PCIe3 atomics. Is there a specific configuration bit that is set to indicate the ROCm programming model is needed?

-Tom

Quoted 4 lines

Regards,
Felix

Quoted 14 lines

Am 19.12.2017 um 16:04 schrieb Tom Stellard:

Quoted 11 lines

Hi,

How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd kernel driver? Is it possible to make modifications to the runtime/kernel driver to drop this requirement?

-Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): DM5PR12MB1179B2F3C378819556589747F41E0-2J9CzHegvk8p/[email protected]

#11 lore raw

Agreed - MEC microcode uses atomics when the queue type is set to AQL (rather than PM4).

Quoted 55 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Liu, Shaoyun
Sent: Wednesday, January 03, 2018 11:24 AM
To: [email protected]; Felix Kühling; [email protected]
Cc: Kuehling, Felix
Subject: RE: PCIe3 atomics requirement for amdkfd

I think currently atomic Ops are only used in AQL package which is only available for ROCm , graphics workload will not use AQL package.

Regards
Shaoyun.liu

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Tom Stellard
Sent: Wednesday, January 03, 2018 9:57 AM
To: Felix Kühling; [email protected]
Cc: Kuehling, Felix
Subject: Re: PCIe3 atomics requirement for amdkfd

Quoted 5 lines · Felix Kühling

As I understand it, it would require changes in the ROCr Runtime and in the firmware (MEC microcode). It also changes the programming model, so it may affect certain applications or higher level language runtimes that rely on atomic operations.

How does the MEC microcode know that it is running a ROCm workload as opposed to a graphics workload that doesn't require PCIe3 atomics. Is there a specific configuration bit that is set to indicate the ROCm programming model is needed?

-Tom

Quoted 4 lines

Regards,
Felix

Quoted 14 lines

Am 19.12.2017 um 16:04 schrieb Tom Stellard:

Quoted 11 lines

Hi,

How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd kernel driver? Is it possible to make modifications to the runtime/kernel driver to drop this requirement?

-Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Quoted 8 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#12 lore raw
In reply to a message not in the archive

Hi,

I have to agree here. At least there should be a non-PCIe-3.0 pathway which implements them on the CPU, I mean, they're fairly simple atomics, CAS, SWAP, FetchAdd.

What AMD have actually done is royally screwed over anyone with an FX chipset, i.e. no OpenCL - the open source AMD one requires ROCm, they abandoned Clover, maybe PoCL will work? Who knows.

Quoted 11 lines · Tom Stellard

Hi,

How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd kernel driver? Is it possible to make modifications to the runtime/kernel driver to drop this requirement?

-Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 5a4b1672-4595-7e7f-0d76-9c721b61e98e-z/KZkw/[email protected]

#14 lore raw

Let's separate out OpenCL from HCC/HIP and the rest of the ROCm stack.

We are working on a solution to deliver OpenCL without requiring atomics, but not the rest of the ROCm stack.

Quoted 31 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Luke A. Guest
Sent: Monday, December 25, 2017 9:55 AM
To: [email protected]
Subject: Re: PCIe3 atomics requirement for amdkfd

Hi,

I have to agree here. At least there should be a non-PCIe-3.0 pathway which implements them on the CPU, I mean, they're fairly simple atomics, CAS, SWAP, FetchAdd.

What AMD have actually done is royally screwed over anyone with an FX chipset, i.e. no OpenCL - the open source AMD one requires ROCm, they abandoned Clover, maybe PoCL will work? Who knows.

Quoted 11 lines · Tom Stellard

Hi,

How hard of a requirement is PCIe3 atomics for dGPUs with the amdkfd kernel driver? Is it possible to make modifications to the runtime/kernel driver to drop this requirement?

-Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx