error C2719 in Visual C++ 2008 with CULA R11

General CULA Dense (LAPACK & BLAS) support and troubleshooting. Use this forum if you are having a general problem or have encountered a bug.

error C2719 in Visual C++ 2008 with CULA R11

Postby demoon » Sun Apr 03, 2011 5:28 am

After installation CULA R11 my programms that work on CULA R10 can't be compiled.
I have error messages:

1>d:\program files\cula\include\culapack.h(82) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
1>d:\program files\cula\include\culapack.h(82) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
1>d:\program files\cula\include\culapack.h(248) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned
1>d:\program files\cula\include\culapack.h(248) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned
1>d:\program files\cula\include\culapackdevice.h(83) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
1>d:\program files\cula\include\culapackdevice.h(83) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
1>d:\program files\cula\include\culapackdevice.h(249) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned
1>d:\program files\cula\include\culapackdevice.h(249) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned

I have tried to compile the examples from CULA\examples, and the result is the same (error C2719). On Cula R10 I have never seen this error.
I work on 32-bit Windows XP, Visual C++ 2008 Express Edition, and 32-bit version of CULA R11.

I will thankful for help
demoon
 
Posts: 6
Joined: Mon Mar 14, 2011 7:23 am

Re: error C2719 in Visual C++ 2008 with CULA R11

Postby john » Mon Apr 04, 2011 9:24 am

So far we are unable to reproduce this on our machines. We have done a clean install of R11 on a Win32 machine with VS2008. Can you send more details? Has anything else in your system changed, like have you installed CUDA 4.0 or changed compiler settings? We will need either more details or a reproducer case.

Thanks,
John
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: error C2719 in Visual C++ 2008 with CULA R11

Postby demoon » Mon Apr 04, 2011 10:07 am

I can plaste the build log from the visual c++ (from one of my programms):

Build Log

Build started: Project: single1, Configuration: Debug|Win32


Command Lines

Creating temporary file "d:\Documents and Settings\root\Moje dokumenty\Visual Studio 2008\Projects\single1\single1\Debug\BAT00000132003772.bat" with contents
[
@echo off

echo "D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\bin\nvcc.exe" -arch sm_10 -ccbin "D:\Program Files\Microsoft Visual Studio 9.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -I"D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\include" -I"D:\Documents and Settings\All Users\Dane aplikacji\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2\C\common\inc" -maxrregcount=32 --compile -o "Debug\sample.cu.obj" "d:\Documents and Settings\root\Moje dokumenty\Visual Studio 2008\Projects\single1\single1\sample.cu"

"D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\bin\nvcc.exe" -arch sm_10 -ccbin "D:\Program Files\Microsoft Visual Studio 9.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -I"D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\include" -I"D:\Documents and Settings\All Users\Dane aplikacji\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2\C\common\inc" -maxrregcount=32 --compile -o "Debug\sample.cu.obj" "d:\Documents and Settings\root\Moje dokumenty\Visual Studio 2008\Projects\single1\single1\sample.cu"

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Compiling with CUDA Build Rule..."

exit 1

:VCEnd
]
Creating command line """d:\Documents and Settings\root\Moje dokumenty\Visual Studio 2008\Projects\single1\single1\Debug\BAT00000132003772.bat"""
Output Window

Compiling with CUDA Build Rule...
"D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\bin\nvcc.exe" -arch sm_10 -ccbin "D:\Program Files\Microsoft Visual Studio 9.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -I"D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\include" -I"D:\Documents and Settings\All Users\Dane aplikacji\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2\C\common\inc" -maxrregcount=32 --compile -o "Debug\sample.cu.obj" "d:\Documents and Settings\root\Moje dokumenty\Visual Studio 2008\Projects\single1\single1\sample.cu"
sample.cu
tmpxft_00000ec4_00000000-3_sample.cudafe1.gpu
tmpxft_00000ec4_00000000-8_sample.cudafe2.gpu
sample.cu
tmpxft_00000ec4_00000000-3_sample.cudafe1.cpp
tmpxft_00000ec4_00000000-14_sample.ii
d:\program files\cula\include\culapack.h(82) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
d:\program files\cula\include\culapack.h(82) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
d:\program files\cula\include\culapack.h(248) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned
d:\program files\cula\include\culapack.h(248) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned
d:\program files\cula\include\culapackdevice.h(83) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
d:\program files\cula\include\culapackdevice.h(83) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('8')) won't be aligned
d:\program files\cula\include\culapackdevice.h(249) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned
d:\program files\cula\include\culapackdevice.h(249) : error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned
Project : error PRJ0019: A tool returned an error code from "Compiling with CUDA Build Rule..."
Results

Build log was saved at "file://d:\Documents and Settings\root\Moje dokumenty\Visual Studio 2008\Projects\single1\single1\Debug\BuildLog.htm"
single1 - 9 error(s), 0 warning(s)




I didn't make any changes in the project settings. I have only uninstalled cula R10 and installed cula R11 (the directorys are the same).

I will thankful for help
demoon
 
Posts: 6
Joined: Mon Mar 14, 2011 7:23 am

Re: error C2719 in Visual C++ 2008 with CULA R11

Postby john » Mon Apr 04, 2011 10:29 am

This is definitely not an example of ours, because none of the CULA examples are compiled by the NVCC compiler. We'll look into whether something has happened to endanger CULA compatibility with .cu files. The worst case solution for you at this moment will be to place all CULA calls in .cpp files while we look into this.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: error C2719 in Visual C++ 2008 with CULA R11

Postby john » Mon Apr 04, 2011 11:08 am

We have been able to reproduce this problem with the complex type in 32-bit MSVC and NVCC. It is not a problem with 64-bit MSVC.

Please place
Code: Select all
#define CULA_USE_CUDA_COMPLEX

PRIOR to any CULA headers and your problem should go away.

We'll continue to look into the alignment issues, but this should work for you for now.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: error C2719 in Visual C++ 2008 with CULA R11

Postby demoon » Fri Apr 08, 2011 4:34 am

Thank you!
It solves my problem.
demoon
 
Posts: 6
Joined: Mon Mar 14, 2011 7:23 am


Return to CULA Dense Support

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron