Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/CPPMethod.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ CPyCppyy::CPPMethod::CPPMethod(
fMethod = Cppyy::ReduceReturnType(fMethod, TypeReductionMap[result]);
if (result && Cppyy::IsLambdaClass(result))
fMethod = Cppyy::AdaptFunctionForLambdaReturn(fMethod);
if (fMethod && Cppyy::IsCUDAFunction(fMethod) && !Cppyy::IsConstructor(fMethod)) {
Cppyy::AdaptCUDAFunction(fMethod);
// Cppyy::DumpScope(fMethod);
}
}

//----------------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions src/Cppyy.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ namespace Cppyy {
CPPYY_IMPORT
bool IsNamespace(TCppScope_t scope);
CPPYY_IMPORT
bool IsCUDAFunction(TCppScope_t scope);
CPPYY_IMPORT
bool IsClass(TCppScope_t scope);
CPPYY_IMPORT
bool IsTemplate(TCppScope_t handle);
Expand Down Expand Up @@ -329,6 +331,8 @@ namespace Cppyy {
CPPYY_IMPORT
TCppScope_t WrapLambdaFromVariable(TCppScope_t var);
CPPYY_IMPORT
void AdaptCUDAFunction(TCppScope_t fn);
CPPYY_IMPORT
TCppScope_t AdaptFunctionForLambdaReturn(TCppScope_t fn);
CPPYY_IMPORT
TCppType_t GetDatamemberType(TCppScope_t var);
Expand Down
Loading