Parallel and Distributed Computing Codes
To run OpenMP codes (in cmd line)
gcc -o <file_name> -fopenmp <file_name>.c
./<file_name>
-
- omp_destroy_lock
- omp_get_dynamic
- omp_get_max_threads
- omp_get_nested
- omp_get_num_procs
- omp_get_num_threads
- omp_get_thread_num
- omp_get_default_device()
- omp_get_wtick
- omp_get_wtime
- omp_in_parallel
- omp_init_lock
- omp_init_nest_lock
- omp_set_dynamic
- omp_set_lock
- omp_set_nest_lock
- omp_set_nested
- omp_set_num_threads
- omp_test_lock
- omp_unset_lock
-
Write a parallel loop that computes the maximum and minimum values in an array using openMP.
-
Using MPI, Design, develop and run Broadcast communication (MPI_Bcast) using MPI_Send and MPI_Recv.