<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hi,<br><br>I'm trying the write the package compiler for MAGMA using PETSc build system. I'm getting the following error while building MAGMA. With the error, I'm also getting a couple hundred warnings:<br><br>sormqr_gpu_2stage.cpp: In function ‘magma_int_t magma_sormqr_gpu_2stages(char, char, magma_int_t, magma_int_t, magma_int_t, float*, magma_int_t, float*, magma_int_t, float*, magma_int_t, magma_int_t*)’:<br>sormqr_gpu_2stage.cpp:98: warning: unused variable ‘c_one’<br>sormqr_gpu_2stage.cpp:107: warning: unused variable ‘lwkopt’<br>strsm_m.cpp: In function ‘magma_int_t magma_strsm_m(magma_int_t, char, char, char, char, magma_int_t, magma_int_t, float, float*, magma_int_t, float*, magma_int_t)’:<br>strsm_m.cpp:181: warning: unused variable ‘jj’<br>strsm_m.cpp:181: warning: unused variable ‘jjb’<br>sgeev.cpp: In function ‘magma_int_t magma_sgeev(char, char, magma_int_t, float*, magma_int_t, float*, float*, float*, magma_int_t, float*, magma_int_t, float*, magma_int_t, magma_int_t*)’:<br>sgeev.cpp:126: warning: unused variable ‘c_n1’<br><b>nvcc fatal : redefinition of argument 'gpu-architecture'</b><br><br><br>What is the easiest way to debug this kind of an error?<br><br>Thanks,<br>Harshad<br><br></div></body></html>