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

An error occurred when I was using OpenCl device #68

Open
w-y-z opened this issue May 13, 2024 · 4 comments
Open

An error occurred when I was using OpenCl device #68

w-y-z opened this issue May 13, 2024 · 4 comments

Comments

@w-y-z
Copy link

w-y-z commented May 13, 2024

Unexpected token ':', "t: Command "... is not valid JSON
[Error: 3221226505]
059b08dd2b3e744e0da4acdbf2b27f5

@Galarius
Copy link
Owner

Galarius commented May 13, 2024

Hi @w-y-z, please provide some information about your environment:

  • platform (macOS, linux, windows), OS version
  • arch (x86_64, arm64)
  • virtual machine or a real device
  • VS code version and vscode-opencl extension version

Please also enable file logging (as shown below), then restart VS Code and repeat the steps that caused the issue. Finally, please send me opencl-language-server.log.

Screenshot 2024-05-13 at 21 32 54

@w-y-z
Copy link
Author

w-y-z commented May 23, 2024

Hello, some of my information is as follows
platform:linux and windows
arch:x86_64
real device
vscode 1.89.1 and vscode-opencl v0.8.3

@w-y-z
Copy link
Author

w-y-z commented May 23, 2024

opencl-language-server.log

@Galarius
Copy link
Owner

Unfortunately, some output wasn't flushed to the log file. To ensure the entire output is captured, the process needs to be terminated (I'll try to improve it in the future release). In the meantime, let's narrow down the scope of the error. The vscode-opencl project consists of a VSCode extension and a language server. Could you please run the language server manually with the following command:

<VS Code Installation Directory>/extensions/galarius.vscode-opencl-0.8.3/bin/win32/opencl-language-server.exe -e clinfo

The default installation directory is likely C:\Users\{UserName}\AppData\Local\Programs\Microsoft VS Code.

The stdout should contain information about OpenCL platforms and devices in JSON format. Additionally, an opencl-language-server.log file will be generated in the current directory. If the JSON is malformed, we can hopefully catch some errors here.

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