+added Makefile and some fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
PROG=aob_cu
|
||||
PROG=ao_cu
|
||||
ISPC_SRC=ao1.ispc
|
||||
CXX_SRC=ao_cu.cpp
|
||||
|
||||
|
||||
@@ -326,7 +326,7 @@ extern "C"
|
||||
const char * func_name,
|
||||
void **func_args)
|
||||
{
|
||||
const std::vector<char> module_str = readBinary("kernel.ptx");
|
||||
const std::vector<char> module_str = readBinary("__kernels.ptx");
|
||||
const char * module = &module_str[0];
|
||||
CUmodule cudaModule = loadModule(module);
|
||||
CUfunction cudaFunction = getFunction(cudaModule, func_name);
|
||||
|
||||
Reference in New Issue
Block a user