Rendering Using GPU

So you have the same error with the correct code ?

What is your OS ? GPU ? driver ?