cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dat63
Observer
Observer
230 Views
Registered: ‎08-28-2018

Unused CU

Hi,

I'm trying to test the usage of multiple CUs in Vitis and a ZCU104 board. I made reference to example https://github.com/Xilinx/Vitis_Accel_Examples/blob/master/host/mult_compute_units/src/host.cpp but I rewrote it in C.

I instantiate 2 CUs with the following code:

cl_kernel krnl_vector_add[2];
for(int i=0; i<2; i++)
{
krnl_vector_add[i]=clCreateKernel(program, "vadd", &err); 
check_cl_err(err);
}

When I run the application the Run Guidance in Vitis Analyzer reports:

"Compute unit vadd_1 on device zcu104_base-0 was used 2 time(s). Compute unit vadd_2 on device zcu104_base-0 was used 0 time(s). Utilize all compute units on the device"

so it seems that only 1 CU is used twice

I tried to modifiy the above code as follows:

krnl_vector_add[0]=clCreateKernel(program, "vadd_1", &err);
krnl_vector_add[1]=clCreateKernel(program, "vadd_2", &err); 


but in this case I got an error during the execution saying that the system is not able to find vadd_1 and vadd_2

Any help is greatly appreciated

Daniele

0 Kudos
0 Replies