Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
func CreateProgram ¶
CreateProgram srcstring is the contents of the string srcstring:=`extern "C" __global__ void add(float *A, float *B, float *C,int n){
int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < n) { C[tid] = A[i] + B[i]; } }` Then you can make a filename := "adder.cpp"
func (*Program) AddNameExpression ¶
Click to show internal directories.
Click to hide internal directories.