Ejemplo n.º 1
0
 def __init__(self):
     self.d_params = cuda.mem_alloc(
             self.ntemporal_samples * DevSrc.max_params * 4)
     self.palette_surf_dsc = util.argset(cuda.ArrayDescriptor3D(),
             height=self.palette_height, width=self.palette_width, depth=0,
             format=cuda.array_format.SIGNED_INT32,
             num_channels=2, flags=cuda.array3d_flags.SURFACE_LDST)
     self.d_pal_array = cuda.Array(self.palette_surf_dsc)
Ejemplo n.º 2
0
 def __init__(self):
     self.d_params = cuda.mem_alloc(
             self.ntemporal_samples * DevSrc.max_params * 4)
     self.palette_surf_dsc = util.argset(cuda.ArrayDescriptor3D(),
             height=self.palette_height, width=self.palette_width, depth=0,
             format=cuda.array_format.SIGNED_INT32,
             num_channels=2, flags=cuda.array3d_flags.SURFACE_LDST)
     self.d_pal_array = cuda.Array(self.palette_surf_dsc)
Ejemplo n.º 3
0
def mkdsc(dim, ch):
    return argset(cuda.ArrayDescriptor(),
                  height=dim.ah,
                  width=dim.astride,
                  num_channels=ch,
                  format=cuda.array_format.FLOAT)
Ejemplo n.º 4
0
def mkdsc(dim, ch):
    return argset(
        cuda.ArrayDescriptor(), height=dim.ah, width=dim.astride, num_channels=ch, format=cuda.array_format.FLOAT
    )