You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added the --device=/dev/dri was required to get access to the GPU devices
uncommented the mounts line
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
"mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
changed my cmake build to remove optimization and add DEBUG mode. Also just using make instead of Ninja
one other change that wasn't mentioned in Intel's vscode support was the need to update the debugger search path for c and c++ includes for the sycl code. Without it, the debugger can't browse through source related to these type of includes.
#include <CL/sycl.hpp>
so, the change in my vscode c_cpp_properties.json file was to add an additional configurations includePath string:
In addition to Intel's info on debugging in vscode, there were a couple of mods I did in devcontainer.json.
added the --device=/dev/dri was required to get access to the GPU devices
uncommented the mounts line
changed my cmake build to remove optimization and add DEBUG mode. Also just using make instead of Ninja
CXX=dpcpp cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_CXX_FLAGS="-O0" -D NODPL=1 ../
I had to change the FPGA devices to FPGA emulator in some projects.
I also had to change from default_device to cpu_device in some projects. The default_device is a GPU, which doesn't work in all the programs.
I'm attaching a launch.json file and my modified devcontainer.json for the examples
vscodefiles.zip
The text was updated successfully, but these errors were encountered: