{"id":23168006,"url":"https://github.com/zamb0/2d_fast_fourier_transform_openmpi","last_synced_at":"2025-08-18T06:32:55.745Z","repository":{"id":194073732,"uuid":"690052754","full_name":"zamb0/2D_Fast_Fourier_Transform_OpenMPI","owner":"zamb0","description":"2D Fast Fourier Transform (2D FFT) parallel algorithm using OpenMPI. The algorithm is implemented in C and it is based on the Cooley-Tukey iterative algorithm. ","archived":false,"fork":false,"pushed_at":"2024-07-08T16:37:19.000Z","size":1068,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-09T20:25:50.671Z","etag":null,"topics":["2dfft","openmpi","parallel-computing","parallel-programming"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zamb0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-11T12:47:20.000Z","updated_at":"2024-07-08T16:37:22.000Z","dependencies_parsed_at":"2023-09-26T03:34:24.892Z","dependency_job_id":null,"html_url":"https://github.com/zamb0/2D_Fast_Fourier_Transform_OpenMPI","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"0cd59706eccdab66a09bf2932606b59c07697b45"},"previous_names":["zamb0/aca","zamb0/2d-fast-fourier-transform-2d-fft-openmpi"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamb0%2F2D_Fast_Fourier_Transform_OpenMPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamb0%2F2D_Fast_Fourier_Transform_OpenMPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamb0%2F2D_Fast_Fourier_Transform_OpenMPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamb0%2F2D_Fast_Fourier_Transform_OpenMPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zamb0","download_url":"https://codeload.github.com/zamb0/2D_Fast_Fourier_Transform_OpenMPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230209289,"owners_count":18190516,"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","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":["2dfft","openmpi","parallel-computing","parallel-programming"],"created_at":"2024-12-18T02:37:26.796Z","updated_at":"2024-12-18T02:37:36.095Z","avatar_url":"https://github.com/zamb0.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![C-Language](https://img.shields.io/badge/C%20Language-red)\n![OpenMPI](https://img.shields.io/badge/OpenMPI-blue)\n\n# 2D Fast Fourier Transform (2D FFT) OpenMPI Implementation\n\n![fft_cover](https://github.com/zamb0/2D_Fast_Fourier_Transform_OpenMPI/assets/69969487/5c5e032d-43c7-44fc-8456-6a172bfda06f)\n\nThis repository contains the code for the Advanced Computer Architecture project (2022/2023).\n\n## Aim of the Project\n\nThe aim of the project is to parallelize a serial C code of a 2D Fast Fourier Transform (FFT) algorithm, the Colley-Tukey one, through OpenMPI.\nThe input of the algorithm is a type P2 PGM image and the outputs are the 2D FFT of the image and the 2D iFFT image.\n\n## Execution Instructions\n\n### 1 - Setup the Git Repository\n\nIf not already done, download and install ```git``` from [git-scm.com](https://git-scm.com). Then clone the repository with the following command:\n\n```bash\ngit clone https://github.com/zamb0/ACA.git\n```\n\n### 2 - Install OpenMPI\n\nDownload Open MPI 4.1.1 from the official [Open MPI website](https://www.open-mpi.org/software/ompi/v4.1/) and install it.\n\n### 3 - Compile\n\nTo compile and run the serial application, run the following commands:\n\n```bash\ngcc -Wall -o executableFile -lm -std=c99 *.c\n```\n\nyou need to compile using all the .c files in the folder but ```fft_parallel.c``` and ```img_generator.c```.\n\nIf you want to compile and run the parallel application instead,\nthen compile in the following way:\n\n```bash\nmpicc -Wall -o executableFile -lm -std=c99 *.c\n```\n\nalso in this case you need to compile using all the .c files in the folder but ```fft_serial.c``` and ```img_generator.c```.\n\n### 3b - Generate the Images (if needed)\n\nIf you do not have images to run the 2D FFT algorithm on, you can compile the ```img_generator.c``` to generate sample images of your choice. To compile the image generator, run the following command:\n\n```bash\ngcc -Wall -o img_gen img_generator.c pgm.c\n```\n\nThen, to generate an image, run the following command:\n\n```bash\n./img_gen [outputFile] [width] [height] [pgmType] [maxValue]\n```\n\nwhere ```outputFile``` is the name of the file where the image will be saved, ```width``` is the width of the image, ```height``` is the height of the image, ```pgmType``` is the type of pgm image (i.e. P2 is the one allowed to be used in our project), ```maxValue``` is the maximum value of the pixels in the image.\n\n### 4 - Run the Program\n\nTo compile and run the serial application, run the following commands:\n\n```bash\n./executableFile [inputImage]\n```\n\nIf you want to run the parallel application instead:\n\n```bash\nmpirun -np N executableFile [inputImage]\n```\n\nwhere ```N``` is the number of processes you want to use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzamb0%2F2d_fast_fourier_transform_openmpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzamb0%2F2d_fast_fourier_transform_openmpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzamb0%2F2d_fast_fourier_transform_openmpi/lists"}