Tested on baconost (Linux with CUDA 4.1). Looks good to push.<br><br><div class="gmail_quote">On Sun, Aug 26, 2012 at 6:14 PM, Sean Farley <span dir="ltr"><<a href="mailto:sean@mcs.anl.gov" target="_blank">sean@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Sean Farley <<a href="mailto:sean@mcs.anl.gov">sean@mcs.anl.gov</a>><br>
# Date 1346005847 18000<br>
# Node ID 63d07634522344a4f6078db68a6e31e1ea6d5d59<br>
# Parent 56899038c8e3e8ee070c93767a77632405801842<br>
cuda: add __attribute((unused)) since the backend seems to support it<br>
<br>
diff --git a/config/PETSc/Configure.py b/config/PETSc/Configure.py<br>
--- a/config/PETSc/Configure.py<br>
+++ b/config/PETSc/Configure.py<br>
@@ -560,11 +560,11 @@<br>
if self.checkCompile('#define _POSIX_C_SOURCE 200112L\n#include <stdlib.h>','long v = atoll("25")') or self.checkCompile ('#include <stdlib.h>','long v = atoll("25")'):<br>
self.addDefine('HAVE_ATOLL', '1')<br>
<br>
def configureUnused(self):<br>
'''Sees if __attribute((unused)) is supported'''<br>
- if self.framework.argDB['with-ios'] or self.framework.argDB['with-cuda']:<br>
+ if self.framework.argDB['with-ios']:<br>
self.addDefine('UNUSED', ' ')<br>
return<br>
self.pushLanguage(self.languages.clanguage)<br>
if self.checkLink('__attribute((unused)) static int myfunc(void){ return 1;}', 'int i = myfunc();\ntypedef void* atype;\n__attribute((unused)) atype a;\n'):<br>
self.addDefine('UNUSED', '__attribute((unused))')<br>
</blockquote></div><br>