Mailing List picongpu-users@hzdr.de Message #56
From: Dr. Ajit Upadhyay <ajitup@rrcat.gov.in>
Subject: RE: Help on PIConGPU?
Date: Fri, 29 Apr 2016 18:40:08 +0530
To: <picongpu-users@hzdr.de>
Cc: 'René Widera' <r.widera@hzdr.de>
Dear René,

Thanks for your suggestion. I will try it with cmake3.3

Meanwhile, I went to individual directories of ~/src/picongpu and compiled
individual modules cuda_memtest, mpiInfo etc. in that directory itself.

After that I commented the lines having add_subdirectory() function in
cuda_memtest and mpiInfo  module in the file
~/src/picongpu/src/piconpu/CMakeLists.text (line number 293 and 307)

Now, when I used

rm -fR ~/build && mkdir ~/build && cd ~/build
$PICSRC/configure ~/paramSets/case001
make -j install

It compiled and installed successfully. I am yet to test an example.
This is an issue with cmake  new version as mentioned in the link I have
given in my previous email.

Regards,
Ajit



-----Original Message-----
From: René Widera [mailto:r.widera@hzdr.de]
Sent: Friday, April 29, 2016 5:53 PM
To: ajitup@rrcat.gov.in
Subject: Re: Help on PIConGPU?

Dear Ajit,

thank you for providing use with the link. We need to test cmake 3.5 with
PIConGPU.
Could you please install cmake 3.3 till we fix the issue.

best,

René

On 29.04.2016 13:41, Dr. Ajit Upadhyay wrote:
> Dear Rene,
>
> Here is a link that answers why the build directory error comes in
> versions of cmake.
>
> http://stackoverflow.com/questions/24739401/cmake-project-shared-depen
> dencies
>
> The error in my case is:
>
> CMake Error at CMakeLists.txt:42 (add_subdirectory):
>    The binary directory
>      /home/ajitup/build/build_picongpu
>    is already used to build a source directory.  It cannot be used to
build
>    source directory
>      /home/ajitup/code.PIConGPU/picongpu-master/src/picongpu
>    Specify a unique binary directory name.
>
> The CMakeLists.txt in /src/picongpu has the following line at no. 42
>
> add_subdirectory("${CMAKE_SOURCE_DIR}/src/picongpu"
> "${CMAKE_BINARY_DIR}/build_picongpu")
>
>
> and it seems that the build directory is being called 3 times during
> the whole project. It successfully builds the first time and when it
> is accessed second or third time, it gives error.
>
> I feel that -lpthread error could be linked to this error, as new
> build directory does not get created. I tried changing gcc and glibc
> versions but the error repeats.
>
> What is your suggestion?
>
> regards,
> ajit
>
>
>

--
René Widera
Abteilung Laser-Teilchenbeschleunigung (FWKT) Helmholtz-Zentrum
Dresden-Rossendorf
Tel: +49 (0351) 260 3543
r.widera@hzdr.de
http://www.hzdr.de

Vorstand: Prof. Dr. Dr. h. c. Roland Sauerbrey,
           Prof. Dr. Dr. h. c. Peter Joehnk
Vereinsregister: VR 1693 beim Amtsgericht Dresden


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster