std1.0.0-beta-7 SafeC docs

std :: ml::gpu_rocm

Function std::rocm_half_add

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

int rocm_half_add(struct RocmHalfBuf a, struct RocmHalfBuf b, struct RocmHalfBuf out)

16-bit elementwise ops (fp32 arithmetic, one rounding per value; a, b and out of one dtype and a.len elements).