{"id":17358617,"url":"https://github.com/babak2/optimizedsum","last_synced_at":"2025-03-27T15:46:29.259Z","repository":{"id":205518098,"uuid":"714408494","full_name":"babak2/OptimizedSum","owner":"babak2","description":"Optimized Parallel Sum program demonstrating CPU vs GPU performance ","archived":false,"fork":false,"pushed_at":"2023-11-09T16:43:31.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T19:44:34.867Z","etag":null,"topics":["cuda","cuda-programming","gpu-acceleration","gpu-computing","gpu-parallelism","visual-studio"],"latest_commit_sha":null,"homepage":"","language":"Cuda","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/babak2.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-11-04T20:13:57.000Z","updated_at":"2024-01-13T23:00:45.000Z","dependencies_parsed_at":"2023-11-21T07:03:40.636Z","dependency_job_id":"65e02a4f-edd5-49ff-9bbe-abc69948e4f8","html_url":"https://github.com/babak2/OptimizedSum","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"3a45e16c7f91c939f71965f53840926dca9c1b05"},"previous_names":["babak2/optimizedsum"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FOptimizedSum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FOptimizedSum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FOptimizedSum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FOptimizedSum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babak2","download_url":"https://codeload.github.com/babak2/OptimizedSum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245874634,"owners_count":20686807,"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":["cuda","cuda-programming","gpu-acceleration","gpu-computing","gpu-parallelism","visual-studio"],"created_at":"2024-10-15T19:06:12.335Z","updated_at":"2025-03-27T15:46:29.226Z","avatar_url":"https://github.com/babak2.png","language":"Cuda","readme":"# OptimizedSum\n\nOptimizedSum is a C++ program developed on Visual Studio that provides an optimized parallel method for calculating the sum of numbers.\n\nIt demonstrates the performance (execution speed) difference between CPU and CUDA implementations.\n\n\n## Installation\n\nYou can install OptimizedSum by following these steps:\n\n1. Clone the GitHub repository to your local machine:\n\n   ```\n   git clone https://github.com/babak2/OptimizedSum.git\n   ```\n\n   Navigate to the project directory:\n\n   ```\n   cd OptimizedSum\n   ```\n\n3. Build the program using Visual Studio or your preferred C++ compiler.\n\n4. Run the compiled program to perform optimized summation calculations.\n\n## Program Requirement\n\nTo use OptimizedSum, you need the following software and hardware requirements:\n\n- C++ compiler (e.g., Visual Studio, g++, clang++)\n- CMake (optional, for building with CMake)\n- CUDA (Compute Unified Device Architecture) from NVIDIA installed, along with an NVIDIA GPU, if you plan to utilize GPU acceleration for certain calculations.\n\nMake sure you have CUDA from NVIDIA installed and properly configured with a compatible NVIDIA GPU if you intend to take advantage of GPU acceleration. \n\nUsers without an NVIDIA GPU may still use the CPU-based functionality of the program.\n\n## Usage\n\nTo use OptimizedSum, follow these steps:\n\n1. Compile the program as mentioned in the Installation section.\n\n2. Run the compiled executable from the command line.\n   \n   ``` ./OptimizedSum   ```\n\n4. Follow the on-screen instructions to input numbers for summation.\n\n5. The program will calculate the sum of the entered numbers using an optimized algorithm.\n\n\n## Output Example\n\nHere's an example of the OptimizedSum output:\n\n\u003ccode style=\"background-color: #f0f0f0; padding: 10px; display: block;\"\u003e\nCPU Sum: 494483662 - Time: 0.035 seconds\nCUDA Sum: 494483662 - Time: 0.021 seconds\nCPU Time: 0.035 seconds\nCUDA Time: 0.021 seconds\nSpeedup: 1.66667x \n\u003c/code\u003e\n\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n## Author\n\nBabak Mahdavi Aresetani\n\nbabak.m.ardestani@gmail.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabak2%2Foptimizedsum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabak2%2Foptimizedsum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabak2%2Foptimizedsum/lists"}