Running SYCL program in MSVC Debug mode throws std::bad_array_new_length #256
Comments
Hello, The image says |
Oh. Yes that image was taken from my own program but the same exception occurs on the sample programs. I have not tested every single one but it seems to occur where a cl::sycl::queue object is used (constructed). |
I'm joinning this thread because I have the same issue. I am using Visual Studio 16.11.2 on Windows 10. Here's computecpp_info output on my machine : Build has been done through CMake with the following command line from the guide, plus an extra command for my device : Building |
The CMake should pick up the debug version of the ComputeCpp library when building in debug mode, but it's possible that it's not. Can you check the CMake cache (it's in the build folder) for the entry |
Yes those are the right libraries. Are you saying that if you change from the debug CRT to the release CRT, debug builds start working again? If that's the case, that's definitely unexpected (I don't know what those flags do, I'm afraid, but I'm guessing from some documentation). |
Did you try any version of CMake |
Doesn't seems to work either. I tried versions |
Cloned the latest computecpp-sdk samples and built project files using the included CMake.
Running on Visual Studio v16.9.4 2019 on Windows 10 in Debug mode.
Exception points to the queue construction (with both default constructor and with specific ones):
This seems like a ComputeCpp bug and nothing to do with the samples as I have tested in my own code and it occurs with any simple queue construction. Perhaps not though, as Visual Studio seems to link with the correct debug library, found in the linker dependencies:
\computecpp\lib\ComputeCpp_d.lib
The text was updated successfully, but these errors were encountered: