Solved by albanD in post #2 
              
              
                Hi, 
For performance reasons, we cannot do as many checks on the cuda side as we can do on the cpu side  
Running this on the CPU should raise a nice error. 
Also I think we improved the GPU behavior in master so you can try with a nightly build.