2

I have found some references on AMD forums that it is possible to do offline compilation for a target GPU not physically installed in the system that does the compilation. But I can't find a way to do this.

In other words, how can I create a binary for 6900XT without buying this card?

P. S. Both the host and the target operating systems are Windows 10.

Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335

1 Answers1

0

The way to do this is use the AMD's CL_CONTEXT_OFFLINE_DEVICES_AMD extension which lets you creat OCL context and invoke OCL functions for any specified GPU model as if the card was actually present in your system.
Here's the Github repo (written by someone else many years ago) that does it: https://github.com/anyc/ocl-ke/blob/master/ocl-ke.c

Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335