Add more debug info

[ROCm/hip commit: ce92a53f25]
This commit is contained in:
Ben Sander
2016-11-26 08:55:51 -06:00
rodzic a7d73614ad
commit e7edba491b
21 zmienionych plików z 1922 dodań i 7 usunięć
@@ -0,0 +1,21 @@
#include <hip/hip_runtime.h>
static const int BLOCKSIZEX=32;
static const int BLOCKSIZEY=16;
__global__ void fails(hipLaunchParm lp, float* pErrorI)
{
if(pErrorI!=0)
{
pErrorI[0]=1;
}
}
int main()
{
dim3 blocks(1,1);
dim3 threads(BLOCKSIZEX,BLOCKSIZEY);
float error;
hipLaunchKernel(HIP_KERNEL_NAME(fails), blocks, threads, 0, 0, &error);
}