std1.0.0-beta-7 SafeC docs

std :: ml::gpu_rocm

Function std::rocm_copy

#include <std/ml/gpu_rocm.h> source ยท definition

int rocm_copy(
    struct RocmBuf src,
    unsigned long srcOff,
    struct RocmBuf dst,
    unsigned long dstOff,
    unsigned long n,
)

dst[dstOff .. dstOff+n) = src[srcOff .. srcOff+n) (device-to-device copy)