Hello,
I would like to ask about parallelization the simple for loop or any loop to be executed on GPU. Currently i have the following code but works very slow on CPU. I cannot find the answer for get this work on GPU. Is it even possible? I search the web without any luck. Any help will be appreciated.
Thank you in advance.
img_height_vec = [0] * detected_bright_regions_image.shape[0]
img_width_vec = [0] * detected_bright_regions_image.shape[1]
    for i in range(0, detected_bright_regions_image.shape[0]):
        for j in range(0, detected_bright_regions_image.shape[1]):
            if(detected_bright_regions_image[i][j] > 180):
                img_height_vec[i] = 1
                img_width_vec[j] = 1