Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
How to run parallel computation on GPU javascript?

I am trying to understand how to run computation for image processing on Javascript using GPU.

I have two list of bytes, 24 millions bytes each, each images are 4_000 by 6_000 = 24_000_000.

I want to just compare image1 with image2 pixel by pixel.

I do with CPU like this:

    let image1: number[] = [
        // 24 millions bytes
    ]
    let image2: number[] = [
        // another 24 millions bytes
    ]
    let difference = 0
    for (let i = 0; i < image1.length; i ++){
        if (image1[1] === image2[2]) continue
        difference ++
    }
    console.log(`Diffence is ${(difference /image1.length).toFixed(2) }`)

This takes a few seconds on CPU.

But how to do it on GPU to make it faster? We could breakdown the list into chunks and do the comparison of each chunk on a GPU core.

I could not find an example code online

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!