import pycuda.driver as cuda
from pycuda.compiler import SourceModule
import pycuda.autoinit

with open('hello_world.cu', 'r') as f:
    custr = f.read()
custr = """
#define PYCUDA 1

""" + custr
mod = SourceModule(custr, options=['-rdc=true', '-lcudadevrt'])

parentKernel = mod.get_function('parentKernel')
parentKernel(grid=(1,1,1), block=(1,1,1))

