GPUDiagnostics

Usage

use GPUDiagnostics;

or

import GPUDiagnostics;

Supports counting and reporting GPU operations.

Warning

This module is unstable and its interface is subject to change in the future.

record chpl_gpuDiagnostics

Aggregated GPU operation counts.

var kernel_launch: uint(64)
type gpuDiagnostics = chpl_gpuDiagnostics

The Chapel record type inherits the runtime definition of it.

proc startVerboseGPU()

Start on-the-fly reporting of GPU operations initiated on any locale.

proc stopVerboseGPU()

Stop on-the-fly reporting of GPU operations initiated on any locale.

proc startGPUDiagnostics()

Start counting GPU operations across the whole program.

proc stopGPUDiagnostics()

Stop counting GPU operations across the whole program.

proc resetGPUDiagnostics()

Reset aggregate GPU operation counts across the whole program.

proc getGPUDiagnostics()

Retrieve aggregate GPU operation counts for the whole program.

Returns

array of counts of GPU ops initiated on each locale

Return type

[LocaleSpace] gpuDiagnostics