{"id":17486260,"url":"https://github.com/phrb/cpd-ep1","last_synced_at":"2025-03-28T14:42:10.471Z","repository":{"id":29504007,"uuid":"33042084","full_name":"phrb/cpd-ep1","owner":"phrb","description":"EP1 para a disciplina de Computação Paralela e Distribuída","archived":false,"fork":false,"pushed_at":"2015-04-07T23:20:08.000Z","size":2016,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T14:48:54.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phrb.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}},"created_at":"2015-03-28T17:03:36.000Z","updated_at":"2015-04-07T23:20:09.000Z","dependencies_parsed_at":"2022-09-03T20:23:17.689Z","dependency_job_id":null,"html_url":"https://github.com/phrb/cpd-ep1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrb%2Fcpd-ep1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrb%2Fcpd-ep1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrb%2Fcpd-ep1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrb%2Fcpd-ep1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phrb","download_url":"https://codeload.github.com/phrb/cpd-ep1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246049628,"owners_count":20715510,"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":"2024-10-19T02:09:59.376Z","updated_at":"2025-03-28T14:42:10.442Z","avatar_url":"https://github.com/phrb.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Files\n\n* Makefile:\n\n    Builds all C sources.\n    \n=======\n\n* mult_orig.c:\n\n    Original version of matrix multiplication.\n\n* mult_seq.c:\n\n    Sequential version of matrix multiplication (with time measuring).\n\n* mult_seq_prio.c:\n\n    Sequential version with realtime priority (results not used in report).\n    \n* mult_par_v1.c:\n\n    Parallel version of matrix multiplication. Parallelization: inner loop (k)\n    \n* mult_par_v2.c:\n\n    Parallel version of matrix multiplication. Parallelization: middle loop (j)\n\n* mult_par_v3.c:\n\n    Parallel version of matrix multiplication. Parallelization: outer loop (i)\n\n\n=======\n\n* measure_par.py:\n\n    Measure parallel version repeatedly and save stats in file.\n\n* measure_seq.py:\n\n    Measure sequential version repeatedly output stats.\n    \n=======\n\n* showresult*.dem: \n\n    Gnuplot scripts to generate diagrams.\n\n* measure_all.sh:\n\n    Bash script to execute test series with different program versions.\n\n## Measurement\n\n* Compile executables: make\n* Edit mult_measure_par.py to set matrix size, iterations, number of threads.\n* Measurement: ./mult_measure_par.py \u003cfilename executable\u003e \u003cfilename results\u003e.\n* Edit showresult*.dem to adjust.\n* Generate diagram e.g.: gnuplot showresult_cmp_versions.dem.\n* Generate all diagrams at once ./produce_diagrams.sh\n\n## Tips 'n tricks\n\nGenerate stress on OS with [this tool](http://weather.ou.edu/~apw/projects/stress/):\n\n```stress --cpu 8 --vm 4 --timeout 200s```\n\n(was used compare a normal with a high priorized version (mult_seq_prio.c))\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrb%2Fcpd-ep1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrb%2Fcpd-ep1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrb%2Fcpd-ep1/lists"}