mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 15:16:26 +01:00
Edit comment
This commit is contained in:
parent
84759caf0b
commit
446aa2c734
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#ifdef __CUDACC__
|
#ifdef __CUDACC__
|
||||||
__global__ void matrix_mul_kernel(float** M, float** N, float** P, int n, int p, int q) {
|
__global__ void matrix_mul_kernel(float** M, float** N, float** P, int n, int p, int q) {
|
||||||
// Ce fil calcule toutes les multiplications utilisant l'élément N[idx][idy]
|
// Ce fil effectue toutes les multiplications utilisant l'élément N[idx][idy]
|
||||||
int idx = (blockIdx.x*blockDim.x) + threadIdx.x; // Indice de colonne
|
int idx = (blockIdx.x*blockDim.x) + threadIdx.x; // Indice de colonne
|
||||||
int idy = (blockIdx.y*blockDim.y) + threadIdx.y; // Indice de ligne
|
int idy = (blockIdx.y*blockDim.y) + threadIdx.y; // Indice de ligne
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user