Hi Markus -
That was tremendously helpful -- thank you very much.
On 04/18/2018 03:42 AM, Markus Stabrin wrote:
> Hello,
>
> I just did the installation on Ubuntu 18.04 and I also used the Cuda 9.1
> libraries.
> I installed gcc-6 and g++-6 via apt and used
>
> CC=gcc-6 CXX=g++-6 cmake YOUR_OPTIONS
>
> For the cmake command.
>
> In my case, I also needed to modify the src/macros.h as described in
> this issue to avoid crashes:
>
> https://github.com/3dem/relion/issues/234
>
> I hope this helps!
> Best,
> Markus
>
>> On 18. Apr 2018, at 00:03, Patrick Goetz <[log in to unmask]
>> <mailto:[log in to unmask]>> wrote:
>>
>> I had no problems compiling the current version of Relion for Ubuntu
>> 16.04, but have run into a snag with a similar compile for Ubuntu 18.04.
>>
>> The header files for CUDA 9.1 include an #ifdef restricting the gcc
>> version to 6.x, and Ubuntu 18.04 ships with gcc version 7.3.0.
>>
>> Consequently, when I try to run make:
>>
>> --------------
>> /usr/local/cuda/include/crt/host_config.h:121:2: error: #error --
>> unsupported GNU version! gcc versions later than 6 are not supported!
>> #error -- unsupported GNU version! gcc versions later than 6 are not
>> supported!
>> ^~~~~
>> In file included from /usr/local/cuda/include/host_config.h:50:0,
>> from /usr/local/cuda/include/cuda_runtime.h:78,
>> from <command-line>:0:
>> /usr/local/cuda/include/crt/host_config.h:121:2: error: #error --
>> unsupported GNU version! gcc versions later than 6 are not supported!
>> #error -- unsupported GNU version! gcc versions later than 6 are not
>> supported!
>> ^~~~~
>> In file included from /usr/local/cuda/include/host_config.h:50:0,
>> from /usr/local/cuda/include/cuda_runtime.h:78,
>> from <command-line>:0:
>> /usr/local/cuda/include/crt/host_config.h:121:2: error: #error --
>> unsupported GNU version! gcc versions later than 6 are not supported!
>> #error -- unsupported GNU version! gcc versions later than 6 are not
>> supported!
>> ...
>> src/apps/CMakeFiles/relion_gpu_util.dir/build.make:63: recipe for
>> target
>> 'src/apps/CMakeFiles/relion_gpu_util.dir/__/gpu_utils/relion_gpu_util_generated_cuda_autopicker.cu.o'
>> failed
>> make[2]: ***
>> [src/apps/CMakeFiles/relion_gpu_util.dir/__/gpu_utils/relion_gpu_util_generated_cuda_autopicker.cu.o]
>> Error 1
>> CMakeFiles/Makefile2:655: recipe for target
>> 'src/apps/CMakeFiles/relion_gpu_util.dir/all' failed
>> make[1]: *** [src/apps/CMakeFiles/relion_gpu_util.dir/all] Error 2
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>> --------------
>>
>>
>> I'm toying with the idea of just modifying the CUDA header files to
>> allow the use of gcc version 7.x, but am wondering if anyone has an
>> alternative suggestion?
>>
>> I'm having to deploy Ubuntu 18.04 because the workstation hardware is
>> apparently too new for 16.04 to function properly.
>
|