{"id":23821288,"url":"https://github.com/andreasholt/cusmc","last_synced_at":"2026-02-11T17:32:28.215Z","repository":{"id":267467301,"uuid":"858009821","full_name":"AndreasHolt/cuSMC","owner":"AndreasHolt","description":"A CUDA-accelerated Statistical Model Checker for Stochastic Timed Automata","archived":false,"fork":false,"pushed_at":"2025-02-03T20:48:06.000Z","size":1726,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-07T04:37:09.399Z","etag":null,"topics":["cuda","smc"],"latest_commit_sha":null,"homepage":"","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/AndreasHolt.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-16T06:21:48.000Z","updated_at":"2025-02-03T20:48:09.000Z","dependencies_parsed_at":"2025-09-07T17:30:30.895Z","dependency_job_id":null,"html_url":"https://github.com/AndreasHolt/cuSMC","commit_stats":null,"previous_names":["andreasholt/cusmc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreasHolt/cuSMC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasHolt%2FcuSMC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasHolt%2FcuSMC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasHolt%2FcuSMC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasHolt%2FcuSMC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreasHolt","download_url":"https://codeload.github.com/AndreasHolt/cuSMC/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasHolt%2FcuSMC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29339606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T16:14:43.024Z","status":"ssl_error","status_checked_at":"2026-02-11T16:14:15.258Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","smc"],"created_at":"2025-01-02T08:36:30.558Z","updated_at":"2026-02-11T17:32:28.196Z","avatar_url":"https://github.com/AndreasHolt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n  \u003cimg src=\"./readme/cuSMC_light.png\" width=\"330\" alt=\"cuSMC logo\"\u003e\n\u003c/picture\u003e\n\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003eA CUDA-accelerated Statistical Model Checker for Stochastic Timed Automata\u003c/h3\u003e\n\n\n## Overview\n\ncuSMC implements GPU-accelerated statistical model checking for stochastic timed automata. The tool parallelizes simulations through:\n\n- Mapping model components to CUDA threads within blocks representing simulation runs\n  - Each thread is responsible for its component's entire behavior including:\n    - Evaluating guards on outgoing transitions\n    - Selecting and taking enabled transitions\n    - Sampling delays \n    - Updating component state and synchronizing with other components\n- Using shared memory for efficient component state management, sampling  and synchronization between threads\n- Maintaining an optimized model structure in global memory with:\n    - Array-of-structs design for node, edge, guard, invariant and update data with cache-friendly access patterns\n    - Contiguous memory layout for components at each network level\n    - Read-only data caching through restrict and const qualifiers\n    - Use of __ldg instruction for improved global memory loads of expression data\n- Supporting broadcast synchronization through shared memory\n- Thread-level sampling and component race resolution through:\n    - Per-thread uniform distribution sampling for bounded delays\n    - Per-thread exponential distribution sampling for unbounded delays\n    - O(log n) parallel reduction to determine race winners\n\n## Acknowledgements\n\ncuSMC utilises [SMACC's](https://github.com/Baksling/P7-SMAcc) UPPAAL XML parser. We also utilise their structure for expressions and their helper functions to evaluate non-PN and PN expressions.\n\n## Requirements\n\n- C++17 compiler\n- CUDA Toolkit (≥11.0)\n- CMake (≥3.18)\n\n## Building\n\n```bash\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n## Running\nTo get help with the arguments run:\n```bash\n./cuSMC -h\n```\nThis could look like:\n```bash\n./cuSMC -m \"../xml_files/agentBaseCovid_100_1.0.xml\" -q 1000 100 -1 1 1 1 \" \"\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasholt%2Fcusmc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasholt%2Fcusmc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasholt%2Fcusmc/lists"}