Successfully compiled and ran examples

17 views
Skip to first unread message

Christoph Hasse

unread,
Apr 3, 2016, 7:39:06 PM4/3/16
to MCBooster-Users
As requested for documentation just a short info what I did.

Running on a Dell XPS13 l502x with a GeForce GT525M and a Intel Core i7-2670QM.
I downloaded TCLAP and followed their installation instructions including "make install".
Then followed the provided instructions on the Github page.

My CMake output looks like this:

-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- The compiler /usr/bin/c++ has no C++11 support. Please use a different C++ compiler.
-- Compiling for CUDA architecture: 2.1(2.0)
-- Build CUDA/NVCC-based targets: ON
-- TCLAP Include path: /usr/local/include
-- Thrust Include path: /usr/local/cuda/include
-- ROOT Include path: /home/christoph/misc/root/include
-- ROOT Library path: /home/christoph/misc/root/lib
-- ROOT Libraries: /home/christoph/misc/root/lib/libCore.so;/home/christoph/misc/root/lib/libRIO.so;/home/christoph/misc/root/lib/libNet.so;/home/christoph/misc/root/lib/libHist.so;/home/christoph/misc/root/lib/libGraf.so;/home/christoph/misc/root/lib/libGraf3d.so;/home/christoph/misc/root/lib/libGpad.so;/home/christoph/misc/root/lib/libTree.so;/home/christoph/misc/root/lib/libRint.so;/home/christoph/misc/root/lib/libPostscript.so;/home/christoph/misc/root/lib/libMatrix.so;/home/christoph/misc/root/lib/libPhysics.so;/home/christoph/misc/root/lib/libMathCore.so;/home/christoph/misc/root/lib/libThread.so
-- project source dir: /home/christoph/programs/MCBooster
-- project build dir: /home/christoph/programs/MCBooster/build
-- CUDA libraries: /usr/local/cuda-7.5/lib64/libcudart.so
-- nvcc cflags: --std=c++11--cudartstatic-O3--relocatable-device-code=false-Xptxas-dlcm=cg-gencodearch=compute_20,code=sm_21
-- gcc cflags:  -march=native -fPIC -O3 -fopenmp -lgomp
-- Install diretory: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/christoph/programs/MCBooster/build

Since my little mobile graphics card doesn't have enough memory for the 10 million events the examples create I had to change that number to 1 million in the file "Generate.cu". 
After that the examples worked without a problem, besides a single small issue.

Cheers,
Christoph

Antonio Augusto Alves Junior

unread,
Apr 3, 2016, 8:03:18 PM4/3/16
to mcbo...@googlegroups.com
Hi Christoph,
Thanks a lot for this useful and precise feedback. Let me analyse it.

1- The cmake output seems truncated, since some information is missing...
I would expect it to report also GCC, CUDA and Thrust versions and path in your system. Probably it is the output of a second call to cmake.
 
2- It seems everything run ok in your machine. An interesting detail in that cmake reports your compile does not have official support for c++11.
So the code should not compile right? Instead it does... and the targets run without major problems.
Actually, this thing draw my attention to a small error in the CMakeLists.txt logic. I will correct it asap.

3-I confirm the issue with -e parameter to GenerateSample example.

So I will release a patch version during the week, addressing these issues and hopefully also improving the documentation.

Thank you very much to use MCBooster.

A.A.   
--
You received this message because you are subscribed to the Google Groups "MCBooster-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcbooster+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mcbooster/52095639-66fe-4d24-a52f-bd61479abf1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Queriam-me casado, fútil, quotidiano e tributável? 
Queriam-me o contrário disto, o contrário de qualquer coisa? 
Se eu fosse outra pessoa, fazia-lhes, a todos, a vontade. 
Assim, como sou, tenham paciência! 
Vão para o diabo sem mim, 
Ou deixem-me ir sozinho para o diabo!  Alvaro de Campos.

Christoph Hasse

unread,
Apr 3, 2016, 8:18:34 PM4/3/16
to Antonio Augusto Alves Junior, mcbo...@googlegroups.com
Hi Augusto,

apologies I in fact forgot to do a clean run of CMake so for completeness now the full CMake output:
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found TCLAP: /usr/local/include  
-- Found Thrust: /usr/local/cuda/include (found suitable version "1.8.2", minimum required is "1.8") 
-- Found ROOT: /home/christoph/misc/root/bin/root-config  
-- Found CUDA: /usr/local/cuda-7.5 (found suitable version "7.5", minimum required is "6.5") 
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Compiling for CUDA architecture: 2.1(2.0)
-- Build CUDA/NVCC-based targets: ON
-- TCLAP Include path: /usr/local/include
-- Thrust Include path: /usr/local/cuda/include
-- ROOT Include path: /home/christoph/misc/root/include
-- ROOT Library path: /home/christoph/misc/root/lib
-- ROOT Libraries: /home/christoph/misc/root/lib/libCore.so;/home/christoph/misc/root/lib/libRIO.so;/home/christoph/misc/root/lib/libNet.so;/home/christoph/misc/root/lib/libHist.so;/home/christoph/misc/root/lib/libGraf.so;/home/christoph/misc/root/lib/libGraf3d.so;/home/christoph/misc/root/lib/libGpad.so;/home/christoph/misc/root/lib/libTree.so;/home/christoph/misc/root/lib/libRint.so;/home/christoph/misc/root/lib/libPostscript.so;/home/christoph/misc/root/lib/libMatrix.so;/home/christoph/misc/root/lib/libPhysics.so;/home/christoph/misc/root/lib/libMathCore.so;/home/christoph/misc/root/lib/libThread.so
-- project source dir: /home/christoph/programs/MCBooster
-- project build dir: /home/christoph/programs/MCBooster/build
-- CUDA libraries: /usr/local/cuda-7.5/lib64/libcudart.so
-- nvcc cflags: --std=c++11--cudartstatic-O3--relocatable-device-code=false-Xptxas-dlcm=cg-gencodearch=compute_20,code=sm_21
-- gcc cflags:  -march=native -fPIC -O3 -fopenmp -lgomp
-- Install diretory: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/christoph/programs/MCBooster/build


as you can see the compiler test for c++11 works fine as I would expect for gcc 4.8.5. 
And you are right there is a small bug in line 53 of the CMakeLists.txt. I added a "NOT" and now the Output makes more sense as you can see above.

Cheers,
Christoph

Subject: Re: Successfully compiled and ran examples
To: mcbo...@googlegroups.com
From: aalv...@gmail.com
Date: Mon, 4 Apr 2016 02:03:16 +0200
Reply all
Reply to author
Forward
0 new messages