Skip to main content

Vulkan requirements

Raptor SDK requires Vulkan 1.3 and the following device features:

  • VkPhysicalDeviceVulkan12Features::bufferDeviceAddress
  • VkPhysicalDeviceVulkan12Features::timelineSemaphore
  • VkPhysicalDeviceVulkan13Features::dynamicRendering
  • VkPhysicalDeviceVulkan13Features::synchronization2
  • VkPhysicalDeviceVulkan13Features::maintenance4

Checking support​

Use vulkaninfo to verify that all required features are present:

vulkaninfo | grep -E 'bufferDeviceAddress|timelineSemaphore|dynamicRendering|synchronization2|maintenance4'

Each feature must report = true on the selected device. If any feature is missing or reports false, Raptor SDK cannot run on that system.

GPU selection on multi-GPU systems​

On systems with multiple GPUs, restrict which devices Raptor considers by setting RAPTOR_VULKAN_VISIBLE_DEVICES to a comma-separated list of GPU indices (as reported by vulkaninfo --summary):

export RAPTOR_VULKAN_VISIBLE_DEVICES="0"    # use GPU 0 only
export RAPTOR_VULKAN_VISIBLE_DEVICES="0,1" # allow GPU 0 or GPU 1

GPU priority​

raptor::Config::gpuPriority decides how the GPU is shared between the SDK and other processes using the same GPU. It uses Vulkan global priorities (VK_KHR_global_priority or VK_EXT_global_priority), so the GPU driver must support them. The priority is applied when the Context is created.

config.gpuPriority = raptor::GpuPriority::High;

Levels​

LevelVulkan global priorityMeaning
LowVK_QUEUE_GLOBAL_PRIORITY_LOW_KHRLow priority.
MediumVK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHRMedium priority. This is the default.
HighVK_QUEUE_GLOBAL_PRIORITY_HIGH_KHRHigh priority. Usually requires elevated privileges.
RealtimeVK_QUEUE_GLOBAL_PRIORITY_REALTIME_KHRHighest priority. Usually requires elevated privileges.

Medium is the priority Vulkan gives applications that do not set one, so it needs no driver support and is always available.

While the GPU is congested, the driver tries to give more of it to higher-priority work, so that work keeps closer to its usual speed. This is not a guarantee: the SDK still shares the GPU at every level. On an otherwise idle GPU every level performs the same.

How each level is enforced is up to the driver. A driver may accept a level and still schedule it like its neighbour, for example treating High the same as Medium. To see the effect on a given system, measure the SDK's processing time while other processes keep the GPU busy, once per level.

Checking support​

Levels other than Medium need a GPU driver that supports one of the global priority extensions:

vulkaninfo | grep -E 'VK_(KHR|EXT)_global_priority'

If neither is listed for the GPU the SDK uses, the SDK runs at Medium whatever level is set.

Whether a level can be used also depends on the privileges of the process. Levels above Medium usually need elevated privileges, and the driver refuses them otherwise.

The SDK log reports the result when the Context is created:

Log messageMeaning
GPU priority set to <level>The priority was applied.
GPU priority <level> is not supported by the device; using MediumThe GPU driver supports neither extension.
Not permitted to use GPU priority <level>; using Medium. ...The driver refused the level, usually for lack of privileges.

In the two fallback cases the Context is still created and runs at Medium. Nothing is logged for Medium.