René's URL Explorer Experiment


Title: Out-of-bound access in the CUDA/SumReductionRevealed example · Issue #1 · essentialsofparallelcomputing/Chapter12 · GitHub

Open Graph Title: Out-of-bound access in the CUDA/SumReductionRevealed example · Issue #1 · essentialsofparallelcomputing/Chapter12

X Title: Out-of-bound access in the CUDA/SumReductionRevealed example · Issue #1 · essentialsofparallelcomputing/Chapter12

Description: when running the CUDA/SumReductionRevealed example I got output like this: ====== ITREE_LEVEL 1 offset 64 ntX is 128 MIN_REDUCE_SYNC_SIZE 32 ==== 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 1...

Open Graph Description: when running the CUDA/SumReductionRevealed example I got output like this: ====== ITREE_LEVEL 1 offset 64 ntX is 128 MIN_REDUCE_SYNC_SIZE 32 ==== 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 ...

X Description: when running the CUDA/SumReductionRevealed example I got output like this: ====== ITREE_LEVEL 1 offset 64 ntX is 128 MIN_REDUCE_SYNC_SIZE 32 ==== 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 ...

Opengraph URL: https://github.com/essentialsofparallelcomputing/Chapter12/issues/1

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Out-of-bound access in the CUDA/SumReductionRevealed example","articleBody":"when running the CUDA/SumReductionRevealed example I got output like this:\r\n\r\n```\r\n ====== ITREE_LEVEL 1 offset 64 ntX is 128 MIN_REDUCE_SYNC_SIZE 32 ====\r\n 64  66  68  70  72  74  76  78  80  82  84  86  88  90  92  94  96  98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190    \r\n320 322 324 326 328 330 332 334 136 137 1179 139 1027416214 1027423690 1381255598 1281312212 1279612629 1864380849 1702061816 875962631 1484025524 544434613 540553927 1598966244 1430537706 1398752732 1598246643 1163545070 540160956 1027423706 540553640 540619199 540029632 540095169 540160706 540226243 540291780 540357317 540422854 540488391 540553928 540619465 540029898 540095435 540160972 540226509 540292046 540357583 540423120 540488657 540554194 540619731 540030164 540095701 540161238 540226775 540292312 540357849 540423386 540488923 540554460 540619997 540030430 540095967    \r\nSum is 1482423102. Data count is reduced to 128\r\nSync threads when larger than warp\r\n```\r\n\r\nwhere the numbers in the second half go wild.\r\nI think the problem is around line 40:\r\n```\r\nif (tiX \u003c offset){\r\n    array[giX]+=array[giX+offset];\r\n```\r\nwhen looping through the second grid, `giX` goes from 128 to 191, so `giX+offset` (offset=64 in the first round) goes beyond the size of `array` (200), leading to arbitrary numbers entering the summation. The real cuda example works because the array is first copied to `spad` with a boundary check, and `spad` was filled with 0 before copying.\r\n\r\nA possible fix would be changing the if condition to e.g. `if (tiX \u003c offset \u0026\u0026 (giX+offset) \u003c isize)`.","author":{"url":"https://github.com/cihe13375","@type":"Person","name":"cihe13375"},"datePublished":"2024-08-15T15:17:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/Chapter12/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9c5b5f26-866d-4154-2df3-3d85f514287d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA194:1A2C96:14CBC3:1BCDC6:6A62C526
html-safe-nonceffe1ce22672d8e78fcf82ca83c2bf707ff3e9acdb51147557b9a36bbc6b3fe03
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTk0OjFBMkM5NjoxNENCQzM6MUJDREM2OjZBNjJDNTI2IiwidmlzaXRvcl9pZCI6IjgxNTUyMjYyODIxNDg0MTQ3NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdb88cf634ef90c08162557a8b36152391b3de1ca422dbc8cabdd1a1545cc60ee
hovercard-subject-tagissue:2468281546
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/essentialsofparallelcomputing/Chapter12/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3ffc5dd6b6a27be9bc29e1623339b23dc7b180234892e8ead952675d29b50751/essentialsofparallelcomputing/Chapter12/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3ffc5dd6b6a27be9bc29e1623339b23dc7b180234892e8ead952675d29b50751/essentialsofparallelcomputing/Chapter12/issues/1
og:image:altwhen running the CUDA/SumReductionRevealed example I got output like this: ====== ITREE_LEVEL 1 offset 64 ntX is 128 MIN_REDUCE_SYNC_SIZE 32 ==== 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecihe13375
hostnamegithub.com
expected-hostnamegithub.com
Nonedf33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd
turbo-cache-controlno-preview
go-importgithub.com/essentialsofparallelcomputing/Chapter12 git https://github.com/essentialsofparallelcomputing/Chapter12.git
octolytics-dimension-user_id50278728
octolytics-dimension-user_loginessentialsofparallelcomputing
octolytics-dimension-repository_id233338423
octolytics-dimension-repository_nwoessentialsofparallelcomputing/Chapter12
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id233338423
octolytics-dimension-repository_network_root_nwoessentialsofparallelcomputing/Chapter12
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released41cd1bdb290013455c0ac430fa755621733f5eb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/essentialsofparallelcomputing/Chapter12/issues/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fessentialsofparallelcomputing%2FChapter12%2Fissues%2F1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fessentialsofparallelcomputing%2FChapter12%2Fissues%2F1
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=essentialsofparallelcomputing%2FChapter12
Reloadhttps://github.com/essentialsofparallelcomputing/Chapter12/issues/1
Reloadhttps://github.com/essentialsofparallelcomputing/Chapter12/issues/1
Reloadhttps://github.com/essentialsofparallelcomputing/Chapter12/issues/1
Please reload this pagehttps://github.com/essentialsofparallelcomputing/Chapter12/issues/1
essentialsofparallelcomputing https://github.com/essentialsofparallelcomputing
Chapter12https://github.com/essentialsofparallelcomputing/Chapter12
Notifications https://github.com/login?return_to=%2Fessentialsofparallelcomputing%2FChapter12
Fork 1 https://github.com/login?return_to=%2Fessentialsofparallelcomputing%2FChapter12
Star 4 https://github.com/login?return_to=%2Fessentialsofparallelcomputing%2FChapter12
Code https://github.com/essentialsofparallelcomputing/Chapter12
Issues 1 https://github.com/essentialsofparallelcomputing/Chapter12/issues
Pull requests 0 https://github.com/essentialsofparallelcomputing/Chapter12/pulls
Actions https://github.com/essentialsofparallelcomputing/Chapter12/actions
Projects https://github.com/essentialsofparallelcomputing/Chapter12/projects
Security and quality 0 https://github.com/essentialsofparallelcomputing/Chapter12/security
Insights https://github.com/essentialsofparallelcomputing/Chapter12/pulse
Code https://github.com/essentialsofparallelcomputing/Chapter12
Issues https://github.com/essentialsofparallelcomputing/Chapter12/issues
Pull requests https://github.com/essentialsofparallelcomputing/Chapter12/pulls
Actions https://github.com/essentialsofparallelcomputing/Chapter12/actions
Projects https://github.com/essentialsofparallelcomputing/Chapter12/projects
Security and quality https://github.com/essentialsofparallelcomputing/Chapter12/security
Insights https://github.com/essentialsofparallelcomputing/Chapter12/pulse
Out-of-bound access in the CUDA/SumReductionRevealed examplehttps://github.com/essentialsofparallelcomputing/Chapter12/issues/1#top
https://github.com/cihe13375
cihe13375https://github.com/cihe13375
on Aug 15, 2024https://github.com/essentialsofparallelcomputing/Chapter12/issues/1#issue-2468281546
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.