Tag: Beginner

  • Your First OpenACC Fortran Program – Parallel Loop on GPU

    What You’ll Learn Today Today you’ll write your very first OpenACC program that actually runs on the GPU! Think of it like learning to ride a bicycle – once you understand the basic structure, everything else becomes easier. The Magic of Parallel Loops Imagine you’re a teacher with 100 math problems to grade. You could:…

  • Introduction to OpenACC with Fortran

    What You’ll Learn Today Imagine you have a huge pile of homework to do. You could do it all by yourself, or you could ask your friends to help. That’s exactly what OpenACC does for your computer programs – it gets help from the GPU (Graphics Processing Unit) to make calculations super fast! What is…

  • Message Passing Interface (MPI) : MPI_Finalize example

    by

    in

    This post talks about MPI_Finalize function in MPI. MPI_Finalize is the function used in the Message Passing Interface (MPI) to terminate the MPI environment. It must be called at the end of an MPI program once all communication and computation tasks are complete. It cleans up resources allocated by MPI, ensuring proper shutdown. Syntax for…

  • Message Passing Interface (MPI) : MPI_Comm_rank example

    by

    in

    This post talks about MPI_Comm_rank function in MPI. MPI_Comm_rank function in the Message Passing Interface (MPI) is used to determine the rank (or unique ID) of a process within a communicator. Each process in an MPI program has a unique rank, which is an integer ranging from 0 to size-1 (where size is the total…

  • Message Passing Interface (MPI) : MPI_Comm_size example

    by

    in

    This post talks about MPI_Comm_size function in MPI. MPI_Comm_size is a function in the Message Passing Interface (MPI) used to determine the total number of processes in a communicator. Syntax for MPI_Comm_size int MPI_Comm_size( MPI_Comm comm, int *size ) Input Parameters Output Parameter Example code – To compile this code, use following command – To…