Posts

Showing posts from March 10, 2019

Suggestion regarding memory transfer in Opencl

Image
0 I working on an Opencl Project on Xilinx FPGA's. The input data to the host code is not continuous, i.e; sporadic. If I transfer the data as it comes; the kernel will include memory transfer setup. This will significantly increase my kernel execution time. If I pack the data into an array and transfer the data the kernel will be stalled for N number of cycles/time. What is the best way to approach this problem. kernel opencl share | improve this question asked Feb 4 at 3:39 user3751971 user3751971 1 1

Count number of li element and addclass

Image
6 I am trying to count LI elements, and addclass to another div. For example, $('.box2').addClass(function(){ return 'list' + $(this).find('.box1 li').length; }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <ul class="box1"> <li>a</li> <li>b</li> <li>c</li> </ul> <div class="box2">text</div> This should be like this <div class="box2 list3">text</div> But I don't know why when I check on the DOM code, <div class="box2 list0">text</div> I get this result. What do I need to fix the code? Please help.