{"id":26578842,"url":"https://github.com/pprunty/dot_product_parallel","last_synced_at":"2025-03-23T05:17:16.880Z","repository":{"id":168300390,"uuid":"454146535","full_name":"pprunty/dot_product_parallel","owner":"pprunty","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-23T23:43:40.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-24T00:28:03.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pprunty.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}},"created_at":"2022-01-31T19:45:33.000Z","updated_at":"2022-02-02T15:18:01.000Z","dependencies_parsed_at":"2023-11-24T00:37:28.493Z","dependency_job_id":null,"html_url":"https://github.com/pprunty/dot_product_parallel","commit_stats":null,"previous_names":["pprunty/dot_product_parallel"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprunty%2Fdot_product_parallel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprunty%2Fdot_product_parallel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprunty%2Fdot_product_parallel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprunty%2Fdot_product_parallel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pprunty","download_url":"https://codeload.github.com/pprunty/dot_product_parallel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245056898,"owners_count":20553856,"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":[],"created_at":"2025-03-23T05:17:16.387Z","updated_at":"2025-03-23T05:17:16.873Z","avatar_url":"https://github.com/pprunty.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Part of a college assignment...\n\n# Dot Product Parallel\n\nThis program is used to benchmark different parallel thread policies for computing the\ndot product of two vectors v1 and v2 of a given size N.\n\n## Contents\n\n1. [Overview](#overview)\n2. [Requirements](#requirements)\n3. [Compilation and Usage](#compilation-and-usage)\n4. [Known Issues](#known-issues)\n\n## Overview\n\nThe program computes the dot product of two vectors which is given by:\n\n![Screenshot](graphics/dot_product.png)\n\n## Requirements\n\n- g++\n\n## Compilation and Usage\n\nTo compile the program simply type:\n\n\n```shell\nmake\n```\n\nAfter which you can run the program:\n\n```shell\n./dot_product_parallel\n```\n\nThe program will ask for the user to input the size N of the two vectors v1 and v2:\n\n```shell\nPlease enter n the size of the two vectors v1 and v2 to perform dot product operation v1.v2:\n```\n\n## Results\n\nThe following are results for two vectors v1 and v2 of size :\n\nN = 50,000,000 with asynchronous policy\n\n```shell\nEnter n the size of the two vectors v1 and v2 to perform dot product operation v1.v2: 50000000          \nUsing  3 out of 4 hardware threads\n\nSerial dot product = -3458.17\nElapsed time : 372 ms\n\nPackaged tasked based dot product: -3458.35\nElapsed time : 50 ms\n\nDot Product parallel threads \u0026 packaged task: -3458.35\nElapsed time : 51 ms\n\n```\n\nN = 50,000,000 with deferred policy\n\n```shell\nEnter n the size of the two vectors v1 and v2 to perform dot product operation v1.v2: 50000000\nUsing  3 out of 4 hardware threads\n\nDot product (serial). Answer = -3458.17\nElapsed time : 247 ms\n\nDot product tasked based: -3458.35\nElapsed time : 206 ms\n\nDot Product parallel threads \u0026 packaged task: -3458.35\nElapsed time : 78 ms\n```\n\nN = 100,000,000 with asynchronous policy\n\n```shell\nEnter n the size of the two vectors v1 and v2 to perform dot product operation v1.v2: 100000000\nUsing  3 out of 4 hardware threads\n\nDot product (serial). Answer = 7781.02\nElapsed time : 2436 ms\n\nDot product tasked based: 7781.02\nElapsed time : 173 ms\n\nDot Product parallel threads \u0026 packaged task: 7781.02\nElapsed time : 1447 ms\n```\n\nN = 100,000,000 with deferred policy\n\n```shell\nEnter n the size of the two vectors v1 and v2 to perform dot product operation v1.v2: 100000000\nUsing  3 out of 4 hardware threads\n\nDot product (serial). Answer = 7781.02\nElapsed time : 1166 ms\n\nDot product tasked based: 7781.02\nElapsed time : 169 ms\n\nDot Product parallel threads \u0026 packaged task: 7781.02\nElapsed time : 102 ms\n```\n\n\n## Known Issues\n\nNone at present.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpprunty%2Fdot_product_parallel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpprunty%2Fdot_product_parallel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpprunty%2Fdot_product_parallel/lists"}