when my code is like:
//something.h
class something
{
//…
void class_function();
}
//something.cu
#include “something.h”
void something::class_function()
{
…
checkCudaErrors(cudaDeviceSynchronize());
}
it’s ok
but when I change something.cu to:
//something.cu
#include “something.h”
global void global_function()
{
//do nothing here
}
void something::class_function()
{
…
global_function<<<1,1>>>();
checkCudaErrors(cudaDeviceSynchronize());
}
after some iterations,blue screen always appreas with KERNEL_SECURITY_CHECK_FAILURE error code
Do you know any reason about this?