7, జులై 2026, మంగళవారం

Parallel Computing.................... first block first thread ..................CUDA GPU HPC NIVDIA.............before u must know C , CPP, JAVA CORE, OPERATING SYSTEMS, COMPUTER ORG.......









 #include <stdio.h>


__global__ void simpleKernel() {

    printf("Hello world\n G P U H P C first block first thread");

printf("my first flattering steps");

}


int main() {

    simpleKernel<<<1, 1>>>();  //first block first thread

  simpleKernel<<<1, 1>>>();

  simpleKernel<<<1, 1>>>();


    cudaDeviceSynchronize();


    return 0;

}

OUTPUT:-

Hello world

 G P U H P C first block first threadHello world

 G P U H P C first block first threadHello world

 G P U H P C first block first thread

[exit 0 · 5845 ms]

Hello world  

 My first flattering steps  

 Hello world  

 My first flattering steps  

 Hello world  

 My first flattering steps 


[exit 0 · 3101 ms]

కామెంట్‌లు లేవు:

కామెంట్‌ను పోస్ట్ చేయండి