Peterp

#include in *.br File

Discussion created by Peterp on Mar 27, 2009
Latest reply on Mar 27, 2009 by Peterp

Hi,

i have my br-file and i want to compile it width brcc, the file looks like that

gpucode.br

#include <brook/brook.h>

kernel void test_kernel(float a<>, float b<>, out float c<>
{
  c = a + b;
}

void call_brook()
{
    unsigned int size = 1024;
   Stream<float> stream1(1,&size);
}

 

if I compile it with brcc i get this error: 

Error (syntax error> before 'float'

    Stream<float> stream(1,&size);

 

What i'm doing wrong?

 

Outcomes