{"id":31125069,"url":"https://github.com/starmanfrommars/parallel-computing","last_synced_at":"2025-09-17T20:43:02.270Z","repository":{"id":315015974,"uuid":"1057725378","full_name":"starmanfrommars/Parallel-Computing","owner":"starmanfrommars","description":"This repo contains all codes of Parallel Computing Lab for Semester 7","archived":false,"fork":false,"pushed_at":"2025-09-16T06:33:41.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-16T08:32:53.202Z","etag":null,"topics":["c","linux","omp-parallel","parallel-computing"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starmanfrommars.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-16T06:04:59.000Z","updated_at":"2025-09-16T06:33:45.000Z","dependencies_parsed_at":"2025-09-16T08:32:54.373Z","dependency_job_id":"7ca54f65-ec4b-42bc-bcd9-3563f568cf11","html_url":"https://github.com/starmanfrommars/Parallel-Computing","commit_stats":null,"previous_names":["starmanfrommars/parallel-computing"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/starmanfrommars/Parallel-Computing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starmanfrommars%2FParallel-Computing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starmanfrommars%2FParallel-Computing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starmanfrommars%2FParallel-Computing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starmanfrommars%2FParallel-Computing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starmanfrommars","download_url":"https://codeload.github.com/starmanfrommars/Parallel-Computing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starmanfrommars%2FParallel-Computing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275658802,"owners_count":25504780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","linux","omp-parallel","parallel-computing"],"created_at":"2025-09-17T20:42:59.977Z","updated_at":"2025-09-17T20:43:02.253Z","avatar_url":"https://github.com/starmanfrommars.png","language":"C","readme":"# PARALLEL-COMPUTING-LAB \n- Course Code : BCS702\n- Credits : 4\n\n## Course outcomes:\n* Explain the need for parallel programming\n* Demonstrate parallelism in MIMD system.\n* Apply MPI library to parallelize the code to solve the given problem.\n* Apply OpenMP pragma and directives to parallelize the code to solve the given problem\n* Design a CUDA program for the given problem.\n\n## Lab Experiments\n1. Write an OpenMP program that divides the Iterations into chunks containing 2 iterations, respectively (OMP_SCHEDULE=static,2). Its input should be the number of iterations, and its output should be which iterations of a parallelized for loop are executed by which thread. For example, if there are two threads and four iterations, the output might be the following:\n- a. Thread 0 : Iterations 0 −− 1\n- b. Thread 1 : Iterations 2 −− 3\n2. 1 Write a OpenMP program to sort an array on n elements using both sequential and parallel mergesort(using Section). Record the difference in execution time.\n3. Write a OpenMP program to calculate n Fibonacci numbers using tasks.\n4. Write a OpenMP program to find the prime numbers from 1 to n employing parallel for directive. Record both serial and parallel execution times.\n5. Write a MPI Program to demonstration of MPI_Send and MPI_Recv.\n6. Write a MPI program to demonstration of deadlock using point to point communication and avoidance of deadlock by altering the call sequence\n7. Write a MPI Program to demonstration of Broadcast operation.\n8. Write a MPI Program demonstration of MPI_Scatter and MPI_Gather\n9. Write a MPI Program to demonstration of MPI_Reduce and MPI_Allreduce (MPI_MAX,MPI_MIN, MPI_SUM, MPI_PROD)\n\n\u003cb style=\"color: red;\"\u003e\u003cmarquee\u003e[ Above experiments are in order of lab execution date]\u003c/marquee\u003e\u003c/b\u003e\n\n## Experiment Dates\n\u003ctable style=\"border: 2px solid;\"\u003e\n    \u003ctr\u003e\n        \u003cth\u003eExperiment No\u003c/th\u003e\n        \u003cth\u003eDate \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eLab 1\u003c/td\u003e\n        \u003ctd\u003e12-09-2025 \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eLab 2\u003c/td\u003e\n        \u003ctd\u003e16-09-2025 \u003c/td\u003e\n    \u003c/tr\u003e    \n\u003c/table\u003e\n\n## Command for Execution\n\u003cpre\u003e\u003ccode\u003e\ngcc FileName.c -fopenmp \n\u003c/code\u003e\u003c/pre\u003e\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarmanfrommars%2Fparallel-computing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarmanfrommars%2Fparallel-computing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarmanfrommars%2Fparallel-computing/lists"}