radiance 1.0.0

This commit is contained in:
Deadcode committed 2026-10-04 12:02:41 +02:00
commit ae74a8aebf
616 files changed
+338692

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
/* wtab.hip -- the weight-table patch kernel: one thread a write. See wtab.h. */
#include <hip/hip_runtime.h>
#include "wtab.h"
namespace {
__global__ __launch_bounds__(64) void rad_wtab_patch(rad::WtabPatch p) {
const uint32_t i = threadIdx.x;
if (i < p.n) *p.dst[i] = p.val[i];
}
} // namespace
extern "C" int rad_wtab_patch_launch(const rad::WtabPatch* p, void* stream) {
if (!p || p->n == 0) return 0;
hipLaunchKernelGGL(rad_wtab_patch, dim3(1), dim3(64), 0, (hipStream_t)stream, *p);
return hipGetLastError() == hipSuccess ? 0 : -1;
}