From 293eae3d5c6969ba23012e8daa9ad442f49d1148 Mon Sep 17 00:00:00 2001 From: Paul Irofti Date: Fri, 21 Mar 2025 12:48:14 +0200 Subject: [PATCH] Adnotate kernel arguments with: read, write, copy-host. --- ccubes.cl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ccubes.cl b/ccubes.cl index b4e387e..7d97157 100644 --- a/ccubes.cl +++ b/ccubes.cl @@ -52,10 +52,14 @@ nchoosek(int n, int k) * * INPUT: * k - current input - * nofvalues (ninputs x 1) - number of values - * nofpi (ninputs x 1) - number of prime implicants - * ON_set (posrows x ninputs) - ON set - * OFF_set (ninputs x negrows) - OFF set + * nofvalues (ninputs x 1) - read, copy-host - number of values + * ON_set (posrows x ninputs) - read, copy-host - ON set + * OFF_set (ninputs x negrows) - read, copy-host - OFF set + * p_implicants_pos - read, copy-host + * p_implicants_val - read, copy-host + * last_index - read, copy-host + * p_covered - read, copy-host + * p_pichart_pos - read, copy-host * * CONSTANTS: * NINPUTS - number of inputs @@ -79,7 +83,6 @@ nchoosek(int n, int k) __kernel void ccubes_task(int k, __global const real *nofvalues, - __global const real *nofpi, __global const real *ON_set, __global const real *OFF_set, __global const unsigned int *p_implicants_pos,