[ADOL-C] adolc-cuda vector mode

Robert rzimmermann at outlook.de
Fri Jul 29 11:22:50 EDT 2016


Hello,

I want to use the vector mode in adol-c's cuda implementation, but I get 
this error when trying to compile:


nvcc test.cu -std=c++11 -arch=compute_50 -maxrregcount=255 -o test
/usr/include/adolc/adoublecuda.h(945): error: identifier "DIAG_OUT" is 
undefined

/usr/include/adolc/adoublecuda.h(949): error: expression must have 
pointer-to-object type

/usr/include/adolc/adoublecuda.h(954): error: identifier "DIAG_OUT" is 
undefined

/usr/include/adolc/adoublecuda.h(958): error: expression must have 
pointer-to-object type

/usr/include/adolc/adoublecuda.h(965): error: identifier "ADOLC_numDir" 
is undefined

/usr/include/adolc/adoublecuda.h(966): error: identifier "ADOLC_numDir" 
is undefined

/usr/include/adolc/adoublecuda.h(979): error: identifier "ADOLC_numDir" 
is undefined


This is a simple sourcecode to replicate the problem (test.cu):


#define NUMBER_DIRECTIONS 3
#include <adolc/adoublecuda.h>

int main() {
     return 0;
}


As a workaround I can calculate each partial derivative in its own cuda 
thread, but I wanted to analyse the performance difference between these 
methods.

Can someone please help me solve this problem?


Best regards,

Robert



More information about the ADOL-C mailing list