1. Christos Kannas
  2. KPP

Commits

Christos Kannas  committed cc52382

Update: Write Extern "C" before kernel calling functions.

  • Participants
  • Parent commits 2f19c41
  • Branches default

Comments (0)

Files changed (1)

File src/code_cuda_c.c

View file
     va_end( args );
 
     CommentFncBegin( f, vars );
-    bprintf("%s ", CUDA_C_function_qualifiers[q]);
+    if (q >= 0)
+        bprintf("%s ", CUDA_C_function_qualifiers[q]);
+    else
+        bprintf("extern \"C\"\n");
     C_FunctionStart( f, vars );
     bprintf("\n");
     bprintf("{\n");