Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(33)  |  Call(29)  |  Derive(0)  |  Import(4)

src/p/a/parakeet-0.23.2/parakeet/cuda_backend/cuda_syntax.py   parakeet(Download)
from ..ndtypes import Int32 
from ..syntax import SourceExpr, SourceStmt
 
class dim3(object):
  def __init__(self, x, y, z):
 
# pasted literally into the C source 
blockIdx_x = SourceExpr("blockIdx.x", type=Int32)
blockIdx_y = SourceExpr("blockIdx.y", type=Int32)
blockIdx_z = SourceExpr("blockIdx.z", type=Int32)
blockIdx = dim3(blockIdx_x, blockIdx_y, blockIdx_z)
 
threadIdx_x = SourceExpr("threadIdx.x", type=Int32)

src/p/a/parakeet-HEAD/parakeet/cuda_backend/cuda_syntax.py   parakeet(Download)
from ..ndtypes import Int32 
from ..syntax import SourceExpr, SourceStmt
 
class dim3(object):
  def __init__(self, x, y, z):
 
# pasted literally into the C source 
blockIdx_x = SourceExpr("blockIdx.x", type=Int32)
blockIdx_y = SourceExpr("blockIdx.y", type=Int32)
blockIdx_z = SourceExpr("blockIdx.z", type=Int32)
blockIdx = dim3(blockIdx_x, blockIdx_y, blockIdx_z)
 
threadIdx_x = SourceExpr("threadIdx.x", type=Int32)

src/p/a/parakeet-HEAD/parakeet/cuda_backend/cuda_compiler.py   parakeet(Download)
from ..c_backend import PyModuleCompiler
from ..openmp_backend import MulticoreCompiler
from ..syntax import PrintString, SourceExpr
from ..syntax.helpers import get_types, get_fn, get_closure_args, const_int, zero_i32, one_i32
 
        typename = self.to_ctype(t)
        self.add_decl("__constant__ %s %s" % (typename, const_name))
        inner_closure_vars.append(SourceExpr(const_name, type=t))
        gpu_arg = gpu_closure_args[i]
        # in case this is a constant, should assign to a variable
        typename = self.to_ctype(t)
        self.add_decl("__constant__ %s %s" % (typename, const_name))
        inner_closure_vars.append(SourceExpr(const_name, type=t))
        gpu_arg = gpu_closure_args[i]
        # in case this is a constant, should assign to a variable

src/p/a/parakeet-0.23.2/parakeet/cuda_backend/cuda_compiler.py   parakeet(Download)
from ..c_backend import PyModuleCompiler
from ..openmp_backend import MulticoreCompiler
from ..syntax import PrintString, SourceExpr
from ..syntax.helpers import get_types, get_fn, get_closure_args, const_int, zero_i32, one_i32
 
        typename = self.to_ctype(t)
        self.add_decl("__constant__ %s %s" % (typename, const_name))
        inner_closure_vars.append(SourceExpr(const_name, type=t))
        gpu_arg = gpu_closure_args[i]
        # in case this is a constant, should assign to a variable