{"id":19644975,"url":"https://github.com/quantecon/parallelization_experiments","last_synced_at":"2025-04-28T14:32:31.208Z","repository":{"id":68509024,"uuid":"121710723","full_name":"QuantEcon/parallelization_experiments","owner":"QuantEcon","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-14T03:30:48.000Z","size":723,"stargazers_count":3,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-28T11:22:29.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuantEcon.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},"funding":{"github":"numfocus","custom":"https://numfocus.org/donate-to-quantecon"}},"created_at":"2018-02-16T03:20:16.000Z","updated_at":"2018-09-04T21:48:17.000Z","dependencies_parsed_at":"2023-03-11T03:46:59.650Z","dependency_job_id":null,"html_url":"https://github.com/QuantEcon/parallelization_experiments","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"a22f2daa92e94b80d4a02b933b0a77e7165f8905"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Fparallelization_experiments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Fparallelization_experiments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Fparallelization_experiments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Fparallelization_experiments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuantEcon","download_url":"https://codeload.github.com/QuantEcon/parallelization_experiments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251330477,"owners_count":21572290,"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-11-11T14:31:18.047Z","updated_at":"2025-04-28T14:32:31.119Z","avatar_url":"https://github.com/QuantEcon.png","language":"Jupyter Notebook","funding_links":["https://github.com/sponsors/numfocus","https://numfocus.org/donate-to-quantecon"],"categories":[],"sub_categories":[],"readme":"# Parallelization Experiments\n\nHere's a fun test case for parallelization.  In essence we're populating a\nmatrix by simulation, with each row corresponding to one simulation of a given\nfirm's inventory process.\n\nThe firm's inventory process is of (s, S) type with stochastic IID demand.\n\nThe notebook \"inventory_dynamics.ipynb\" is just for background.  I (jstac)\nwrote it for a workshop.\n\nThe notebook \"efficient_inventory_dynamics.ipynb\" runs the simulation\ndescribed above.\n\nI parallelize the task with `numba.prange`.  Numba does a great job of\nparallelizing this task efficiently --- which is non-trivial, because the\nexecution time of each round of the loop is very small (firm's inventory is\nsimulated for only 400 periods).\n\nQuestion: How do Matlab and Julia's simple parallelization implementations do\non this task?\n\nI'm mainly interested in naive implementations that leave most of the\nlogic unchanged.  That is, I want to know how good each of the parallelization\ninterfaces is at collecting low hanging fruit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantecon%2Fparallelization_experiments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantecon%2Fparallelization_experiments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantecon%2Fparallelization_experiments/lists"}