Group context_flagsΒΆ

group context_flags

Defines

GA_CTX_DEFAULT 0x00

Let the backend decide on optimal parameters, using backend-defined heuristics and defaults.

This is the default (0) value.

GA_CTX_MULTI_THREAD 0x01

Optimize parameters for multi-thread performance.

May decrease overall performance in single-thread scenarios.

GA_CTX_SINGLE_THREAD 0x02

Optimize parameters for single-thread performance.

May decrease overall performace in multithread scenarios.

GA_CTX_SINGLE_STREAM 0x4

Allocate a single stream per context, performing all operations in order.

This will remove any attempt at exploiting parallelism in the underlying device by performing unrelated operations concurrently and/or out of order.

This can help performance by removing the small cost paid for each operation to keep everything coherent in the face of parallelism. It can also hinder performance by not exploiting concurrency.

GA_CTX_DISABLE_ALLOCATION_CACHE 0x10

Disable allocations cache (if any).

This will usually decrease performance by quite a bit, but will enable better debugging of kernels that perform out of bounds access.