Solved by ptrblck in post #2 
              
              
                Based on the error message I don’t think you are running out of memory on your GPU but on your host, so you might want to double check the memory requirements of your script for host RAM.