decuda 0.1.1

CUDA to HIP, SYCL, OpenCL, and Rust GPU migration tool — automatic source-code translator for porting CUDA C++ kernels to AMD ROCm HIP, Intel oneAPI SYCL, Khronos OpenCL, and Rust GPU (cust / rust-gpu)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Generated by decuda.
// OpenCL device code is the bulk of this file. The host-side calls
// (`cudaXxx`) have been rewritten to OpenCL equivalents inline; the
// surrounding host program still needs a cl_context + cl_queue, not
// included here. Look for TODO(decuda) markers for items requiring
// manual attention.

// Fixture: only header includes, exercising every include-replacement path
// known to the parser (cuda_runtime.h, cuda.h, device_functions.h, and a
// generic cuda_*.h header).
#include <CL/cl.h> /* was: cuda_runtime.h */
#include <CL/cl.h> /* was: cuda.h */
#include <device_functions.h>
#include /* TODO: replace with target equivalent of cuda_fp16.h */ /* was: cuda_fp16.h */

int main() { return 0; }