ExpectationMax / opencurrent

OpenCurrent library for solving PDEs using CUDA (code.google.com/p/opencurrent)
Apache License 2.0
6 stars 2 forks source link

Boundary values in test problem - is this a compiler problem ? #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Compiling Opencurrent out of the distribution I got a runtime
problem.  This is the output:

PGP100:/local/joergs/opencurrent-1.0.0/src/tests >utest
[INFO] Running on GPU 0
Running tests: RayleighTimingTest, RayleighNoSlipTest, RayleighTest,
LockExTest, LockExDoubleTest, NSTest, MultigridMixedTest,
MultigridDoubleTest, ProjectDoubleTimingTest, ProjectDoubleTest,
ProjectTest, MultigridTest, Advection3DDoubleSymmetryTest,
Advection3DDoubleTest, Advection3DDoubleSwirlTest,
Advection3DSymmetryTest, Advection3DTest, SamplingTest,
Grid1DReduceTest, Grid1DReduceDoubleTest, Reduce1DTimingTest,
Reduce1DDoubleTimingTest, Grid3DTest, Grid3DReduceTest,
Reduce3DTimingTest, Grid3DReduceDoubleTest, Reduce3DDoubleTimingTest,
NetCDFTest, GridNetCDFTest, Diffusion3DTest, Diffusion1DTest
running RayleighTimingTest
[ERROR] Sol_ProjectDivergence3DBase::convert_bc_to_poisson_eqn -
invalid boundary condition type 0
[ERROR] Sol_ProjectDivergence3DBase::convert_bc_to_poisson_eqn -
invalid boundary condition type 0
[ERROR] Sol_ProjectDivergence3DBase::convert_bc_to_poisson_eqn -
invalid boundary condition type 1065353216
[ERROR] Sol_ProjectDivergence3DBase::convert_bc_to_poisson_eqn -
invalid boundary condition type 1065353216
[ERROR] Sol_ProjectDivergence3DBase::convert_bc_to_poisson_eqn -
invalid boundary condition type 0
[ERROR] Sol_ProjectDivergence3DBase::convert_bc_to_poisson_eqn -
invalid boundary condition type 0
[ERROR] Sol_Divergence3DDevice::initialize_storage - invalid
dimensions for divergence
[ERROR] Sol_ProjectDivergence3DDevice::initialize_storage - failed to
initialize divergence_solver
[ERROR] Eqn_IncompressibleNS3D::set_parameters - failed on
_projection_solver initialization
[ASSERT] RayleighTimingTest::assert_true at
/local/joergs/opencurrent-1.0.0/src/tests/rayleightiming.cpp line 136
*** glibc detected *** utest: munmap_chunk(): invalid pointer: 0xbf991374 ***
======= Backtrace: =========

When  running the Rayleigh program in the apps folder a similar error occured.

I guess the whole problem must be related to a compiler problem.

I am running the program on a SUSE 10.1 Linux maschine with the default 
gcc compiler. The cuda version has been downloaded yesterday from nvidia 
and the demos are running fine. My graphic card is a GTX 285 with 2GB of 
memory. I had to change the initial size of the convection problem in 
order to fit into the 2GB but everything else is unchanged.

Just some extra infos:

PGP100:>uname -a                                                      
Linux PGP100 2.6.27.39-0.2-pae #1 SMP 2009-11-23 12:57:38 +0100 i686 i686
i386 GNU/Linux
PGP100:~ >
PGP100:~ >gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3
--enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.3
--enable-linux-futex --without-system-libunwind --with-cpu=generic
--build=i586-suse-linux
Thread model: posix
gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) 
PGP100:~ >

PGP100:~ >nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2009 NVIDIA Corporation
Built on Thu_Jul__2_10:56:25_PDT_2009
Cuda compilation tools, release 2.3, V0.2.1221
PGP100:~ >

  Thanks a lot for any idea on how to advance !

             Joerg

Original issue reported on code.google.com by Joerg.Sc...@gmail.com on 7 Dec 2009 at 6:45

GoogleCodeExporter commented 8 years ago
Sorry.. SUSE version is 11.1 not 10.1

Original comment by Joerg.Sc...@gmail.com on 7 Dec 2009 at 6:52

GoogleCodeExporter commented 8 years ago
The whole problem seems to be related to the 32Bit / 64Bit version of the 
Linux System installed. The one I was using earlier was a 32Bit Suse 11.1.
The demos from the cuda worked fine but opencurrent not.
I have now installed the 64bit version of Suse 11.1 and with this version 
there are no problems - both the demos and opencurrent works fine.

Original comment by Joerg.Sc...@gmail.com on 10 Dec 2009 at 11:18

GoogleCodeExporter commented 8 years ago
Is this issue resolved for you?

Original comment by jcohen.p...@gmail.com on 15 Dec 2009 at 6:03

GoogleCodeExporter commented 8 years ago
Closing.

Original comment by jcohen.p...@gmail.com on 5 Jan 2010 at 3:50