Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda