Sets (or unsets) an environment variable for a scope and restores it on exit.
Both the constructor and the destructor call detail::reload_settings(), so the library sees the pinned value immediately and stops seeing it when the scope ends. A raw ::setenv is invisible to batchlas::settings(); use this instead.
{
}
ScopedEnvVar(const char *name, const char *value)
Pin name to value for the scope.
Event gemm(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A, const MatrixView< T, MatrixFormat::Dense > &B, const MatrixView< T, MatrixFormat::Dense > &C, T alpha, T beta, Transpose transA, Transpose transB, ComputePrecision precision=ComputePrecision::Default)
Batched general matrix-matrix multiply.
- Precondition
- name outlives the object (in practice a string literal); it is borrowed, not copied.
- Warning
- Not thread-safe, because the process environment is not: construct from a test body or benchmark setup, never inside a parallel region. Do not let one straddle a *_buffer_size() query and its solve.
- See also
- Environment variables
Definition at line 104 of file env.hh.