{"id":17862350,"url":"https://github.com/thalesmg/haskell-accelerate-parconc","last_synced_at":"2026-04-18T00:31:19.972Z","repository":{"id":110957438,"uuid":"130608367","full_name":"thalesmg/haskell-accelerate-parconc","owner":"thalesmg","description":"Example and benchmark of Accelerate-HS from Parallel and Concurrent Programming in Haskell","archived":false,"fork":false,"pushed_at":"2018-04-22T21:17:21.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-25T16:17:27.260Z","etag":null,"topics":["accelerate","cuda","gpu-computing","haskell","parallel-computing"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/thalesmg.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-22T21:16:43.000Z","updated_at":"2018-04-22T21:18:21.000Z","dependencies_parsed_at":"2023-04-14T07:31:45.746Z","dependency_job_id":null,"html_url":"https://github.com/thalesmg/haskell-accelerate-parconc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thalesmg/haskell-accelerate-parconc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Fhaskell-accelerate-parconc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Fhaskell-accelerate-parconc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Fhaskell-accelerate-parconc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Fhaskell-accelerate-parconc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thalesmg","download_url":"https://codeload.github.com/thalesmg/haskell-accelerate-parconc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Fhaskell-accelerate-parconc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31951224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"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":["accelerate","cuda","gpu-computing","haskell","parallel-computing"],"created_at":"2024-10-28T08:52:30.503Z","updated_at":"2026-04-18T00:31:19.937Z","avatar_url":"https://github.com/thalesmg.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example of using Accelerate-HS from Parallel and Concurrent Programming in Haskell\n\n## Environment\n\n- OS: Ubuntu 17.10\n- Installed CUDA according to the [official guide](https://developer.nvidia.com/cuda-downloads) (Linux \u003e x86_64 \u003e Ubuntu \u003e 17.04 \u003e deb (local)), CUDA v9.1, GeForce GTX 960M.\n- `apt install llvm-5.0-dev`\n- Stack resolver 11.5\n- Stack extra deps:\n  - accelerate-llvm-1.1.0.0\n  - accelerate-llvm-native-1.1.0.1\n  - accelerate-llvm-ptx-1.1.0.1\n  - cuda-0.9.0.3\n  - llvm-hs-5.0.0\n  - llvm-hs-pure-5.0.0\n\nMore info on the [official Accelerate page](http://www.acceleratehs.org/get-started).\n\n## Benchmarks\n\nFor some reason I yet do not understand, the vector dot product example from Accelerate's site is a lot slower with GPU than with CPU execution.\n\n```\naccelerate-parconc-0.1.0.0: benchmarks\nRunning 3 benchmarks...\nBenchmark bench: RUNNING...\nbenchmarking GPU dotp\nanalysing with 1000 resamples\nmeasurement overhead 1.136 ms\nbootstrapping with 14 of 53 samples (26%)\ntime                 1.413 ms   (1.066 ms .. 1.623 ms)\n                     0.811 R²   (0.723 R² .. 0.880 R²)\nmean                 1.120 ms   (914.5 μs .. 1.389 ms)\nstd dev              471.6 μs   (426.2 μs .. 520.0 μs)\nvariance introduced by outliers: 98% (severely inflated)\n\nbenchmarking CPU dotp\nanalysing with 1000 resamples\nbootstrapping with 23 of 75 samples (30%)\ntime                 299.8 μs   (289.8 μs .. 309.3 μs)\n                     0.992 R²   (0.988 R² .. 0.996 R²)\nmean                 298.0 μs   (292.7 μs .. 304.3 μs)\nstd dev              15.31 μs   (12.29 μs .. 21.51 μs)\nfound 1 outliers among 23 samples (4.3%)\n  1 (4.3%) high mild\nvariance introduced by outliers: 42% (moderately inflated)\n\nBenchmark bench: FINISH\nBenchmark shortest-cpu: RUNNING...\nbenchmarking shortest CPU\nmeasurement took 225.1 s\nanalysing with 1000 resamples\nmeasurement overhead 1.747 ms\nbootstrapping with 3 of 4 samples (75%)\ntime                 14.47 s    (13.71 s .. 15.07 s)\n                     1.000 R²   (0.999 R² .. 1.000 R²)\nmean                 14.52 s    (14.38 s .. 14.60 s)\nstd dev              129.1 ms   (0.0 s .. 129.7 ms)\nvariance introduced by outliers: 19% (moderately inflated)\n\nBenchmark shortest-cpu: FINISH\nBenchmark shortest-gpu: RUNNING...\nbenchmarking shortest GPU\nmeasurement took 57.50 s\nanalysing with 1000 resamples\nmeasurement overhead -2.658 ms\nbootstrapping with 3 of 4 samples (75%)\ntime                 3.902 s    (2.888 s .. 4.730 s)\n                     0.989 R²   (0.986 R² .. 1.000 R²)\nmean                 3.712 s    (3.505 s .. 3.859 s)\nstd dev              221.5 ms   (0.0 s .. 254.2 ms)\nvariance introduced by outliers: 19% (moderately inflated)\n\nBenchmark shortest-gpu: FINISH\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesmg%2Fhaskell-accelerate-parconc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalesmg%2Fhaskell-accelerate-parconc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesmg%2Fhaskell-accelerate-parconc/lists"}