| 
					
	
	
	
	
				 | 
				
					
	
	 
		I have a large .cl file containing my kernel and helper functions it uses. Since the file reached bigger size I get this error while building it:
  :315:9: note: 'myvariable' declared here
     int myvariable = 0;
         ^
 :353:23: error: expected ';' after expression
     result[id] = myvar
                                 ^
                                 ;
 :353:23: error: expected '}'
  The problem is...nothing is missing...if I add a few blank lines or spaces after the kernels closing bracket } the program compiles and runs normally!
  I loading the program with:
  program = context.createProgram(getClass().getResourceAsStream("/kernels/myKernel.cl")).build();
  is it possible that it leaving out the last few chars of the file (since adding a few blank lines or spaces seemes to fix it)...
	
	
	
	 
				 |