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

gl case double glutInit issue #2012

Closed
energystoryhhl opened this issue Jul 15, 2024 · 4 comments
Closed

gl case double glutInit issue #2012

energystoryhhl opened this issue Jul 15, 2024 · 4 comments

Comments

@energystoryhhl
Copy link
Contributor

energystoryhhl commented Jul 15, 2024

I found an issue about CTS running gl / CL-GL interop case issue, I found glutInit double called in CTS CLGL test case code, which will lead to an error:

            freeglut (./test_gl): illegal glutInit() reinitialization attempt

root cause is in: test_conformance/gl/main.cpp:343

            if (glEnv->Init(&argc, (char **)argv, CL_TRUE))

the glEnv->Init has already called in same file line:260, the function glutInit in glEnv->Init can not be called twice, then a error will occur although all the gl / CLGL cases are passed. Then in the full quick CTS running it will appear:

            (12-Jul 03:54:01)     BEGIN  OpenCL-GL Sharing                       : 
           PASSED sub-test.
           PASSED 23 of 23 tests.
           (12-Jul 04:01:48)     FAILED OpenCL-GL Sharing                       : (467s, test  34/53)

Although all the gl/CLGL cases are passed, but this group test is judged to failed. Can you please help to take a look?

@bashbaug
Copy link
Contributor

Probably related to #1885?

@energystoryhhl
Copy link
Contributor Author

Probably related to #1885?

I found this issue has been solved:
02471c8

@energystoryhhl
Copy link
Contributor Author

@bashbaug I created a PR:#2023 to fix gluinit issue in osx, can you please help to review? Can you please help to review it?

@energystoryhhl
Copy link
Contributor Author

#2023 fixed osx gl double init 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

No branches or pull requests

2 participants