Sha256: ff6159e01a303d6c052101e963abbe0e2397383ec44b58f41f4afd15c17997e4
Contents?: true
Size: 467 Bytes
Versions: 26
Compression:
Stored size: 467 Bytes
Contents
% source_ctype = dtype_to_c_type(source_dt) % target_ctype = dtype_to_c_type(target_dt) __kernel void cast(const int M, const int N, __global const <%= source_ctype %> *A, __global <%= target_ctype %> *C) { // Get the index of the current element to be processed const int globalRow = get_global_id(0); // Row ID of C (0..M) const int globalCol = get_global_id(1); // Col ID of C (0..N) C[globalRow * N + globalCol] = A[globalRow * N + globalCol]; }
Version data entries
26 entries across 26 versions & 2 rubygems