Skip to content

Instantly share code, notes, and snippets.

@atinfinity
Last active December 11, 2017 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atinfinity/eb12fc2ab98eb9711e5cc1eff73d79f6 to your computer and use it in GitHub Desktop.
Save atinfinity/eb12fc2ab98eb9711e5cc1eff73d79f6 to your computer and use it in GitHub Desktop.
GpuMatのバグ(?)再現のための最小コード
#include <opencv2/core/cuda.hpp>
int main(int argc, char *argv[])
{
cv::cuda::GpuMat img1(cv::Size(320, 240), CV_32FC1, cv::Scalar(0.0f)); // NG(cuda-memcheck)
//cv::cuda::GpuMat img2(cv::Size(320, 240), CV_32FC1); // OK(cuda-memcheck)
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment