Tag: Beginner
-
Message Passing Interface (MPI) : MPI_Recv example
This post talks about a simple MPI sending and receiving operation. To compile this code, use following command – To execute this code, run following command – Output of this code will be something similar to the following –
-
Message Passing Interface (MPI) : MPI_Send example
This post talks about a simple MPI sending and receiving operation. To compile this code, use following command – To execute this code, run following command – Output of this code will be something similar to the following –
-
CUDA “Hello World!” : Array addition using single block
In this post, we are going to look at basic CUDA code. Even though it doesn’t necessarily prints “Hello World!”, being a very simple arithmetic operation, we will treat it as a “Hello World!” code for CUDA. As we are aware that the discrete GPU cards have their own memory, in CUDA we need to…
-
OpenMP: Set number of threads using omp_set_num_threads
OpenMP allows setting number of threads using omp_set_num_threads() function while the program is executing. This function is a part of Runtime Library Routines provided by OpenMP. This function helps developer to have greater control over number of threads used inside the OpenMP codes. This function can be called any number of times inside the OpenMP…