simple question mk2

I am trying to get the kernal to print “hello” which apparently you can do in emulation mode. what am i doing wrong?

I am making with ‘make emu=1’

#include <stdlib.h>

#include <stdio.h>

#include <string.h>

#include <math.h>

// includes, project

#include <cufft.h>

#include <cutil.h>

__global__ void some(){

        printf("hello\n");

}

int main(int argc, char** argv)

{

        dim3 gridConfig(1,1);

        dim3 blockConfig(200,200);

       some<<<gridConfig,blockConfig>>>();

   CUT_EXIT(argc, argv);

}

never mind, I got it working by accessing the kernal using constants i.e.

some<<<1,5>>>();

thanks anyway for your time

I think the problem was that your thread block was too big - you’re limited to 512 threads per block, IIRC.

BTW, it’s better to have some compiler console output when diagnosing stuff on forums.

Good luck!