Skip to content
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

[basic ] work_item_function测试 #97

Closed
zhoujingya opened this issue Jan 31, 2024 · 2 comments · Fixed by #98
Closed

[basic ] work_item_function测试 #97

zhoujingya opened this issue Jan 31, 2024 · 2 comments · Fixed by #98

Comments

@zhoujingya
Copy link
Collaborator

测试报错:"ERROR: get_global_id(2) did not return proper value for %d dimensions (max 13, got 43)",

@zhoujingya
Copy link
Collaborator Author

pin @Jules-Kong @wangqinfan

@zhoujingya
Copy link
Collaborator Author

work_item_function里面的测试逻辑有边界情况的验证

if (testData[q].localID[j] >= (cl_uint)localThreads[j])
{
    log_error( "ERROR: get_local_id(%d) did not return proper value for %d dimensions (max %d, got %d)\n",
              (int)j, (int)dim, (int)localThreads[ j ], (int)testData[ q ].localID[ j ] );
    free_mtdata(d);
    return -1;
}

相当于get_local_id(1)的值不能大于locl_size(1)

@zhoujingya zhoujingya linked a pull request Jan 31, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant