[Gate-users] installation error on mac
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Thu May 7 16:30:39 CEST 2015
On Thu, May 7, 2015 at 4:03 PM, Tuoyu Cao wrote:
> Thank Mojca,
>
> I added an empty copy constructor in G4SPSRandomGenerator.hh file like "G4SPSRandomGenerator(const G4SPSRandomGenerator&){}”. Then the compile passed but I am not sure if there will be any unexpected behavior later..
Please share the complete patch, so that developers can test. It might
be better than the one I sent.
> To finish the compile process, I also have to add “std::” in front of some “iostream”. I am not sure if this is an existing problem for other mac users.
Please report the errors and share the patches, either here or at
https://github.com/OpenGATE/Gate/issues
I guess you are using 10.9/10.10?
> If I turn on the “GATE_USE_GPU” option, I still got errors
>
> ***********************
> In file included from /Users/tuoyucao/Documents/gate_v7.1/source/gpu/src/GateGPUManager.cu:9:
> In file included from /Users/tuoyucao/Documents/gate_v7.1/source/gpu/src/GateCollim_gpu.cu:2:
> In file included from /Users/tuoyucao/Documents/gate_v7.1/source/digits_hits/include/GateToGPUImageSPECT.hh:20:
> In file included from /Users/tuoyucao/Documents/root/include/TFile.h:24:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:539:2: error: <atomic> is not implemented
> #error <atomic> is not implemented
> ^
> 1 error generated.
> CMake Error at Gate_generated_GateGPUManager.cu.o.cmake:206 (message):
> Error generating
> /Users/tuoyucao/Documents/gate_v7.1-build/CMakeFiles/Gate.dir/source/gpu/src/./Gate_generated_GateGPUManager.cu.o
>
>
> make[2]: *** [CMakeFiles/Gate.dir/source/gpu/src/Gate_generated_GateGPUManager.cu.o] Error 1
> make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
> make: *** [all] Error 2
> *********************************
>
> Which may be due to the fact that cmake cannot find “CUDA_SDK_DIR”. But since I am using the CUDA 7.0, there is no separate installer for “cpu computing sdk”, and I cannot find anything like that under the cuda folders. Appreciated for anything suggestions.
Someone else will have to answer that. My first guess would be that
the code is not as widely tested as the rest of Gate, so there might
be some trivial compiler-related issues (something that works with one
compiler and not with the other / in other OS). I have never tried to
enable GPU code so far.
> I guess I will try the MacPort way. It would be great if you can make a Homebrew version in the future~
It took me quite a while to get all major compiler errors and bugs
fixed and to come to a state where Gate.app became usable (and even
then I just learned about new issues yesterday), but now that we have
it under MacPorts, repeating the same steps under HomeBrew shouldn't
be a big deal. I see that both Geant4 and ROOT 5 formulas are already
there.
The MacPorts port also does a few special things in the Qt app (some
sugars for the user) that could/should probably be included upstream
into Gate and thus made available on all platforms.
Mojca
More information about the Gate-users
mailing list