Skip to content

bank.cu中一处疑似笔误 #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jayhenry opened this issue Mar 26, 2025 · 1 comment
Open

bank.cu中一处疑似笔误 #43

jayhenry opened this issue Mar 26, 2025 · 1 comment

Comments

@jayhenry
Copy link

jayhenry commented Mar 26, 2025

bank.cu中transpose代码

    int nx2 = bx + threadIdx.y;
    int ny2 = by + threadIdx.x;
    if (nx2 < N && ny2 < N)
    {
        B[nx2 * N + ny2] = S[threadIdx.x][threadIdx.y];
    }

中转置后的B矩阵的坐标 (nx2, ny2) 中计算应为 nx2 = by + threadIdx.yny2 = bx + threadIdx.x?这样和A矩阵的坐标计算正好是转置的关系

@fever-Wong
Copy link

fever-Wong commented Mar 26, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants