Giuseppe,

CMake should create an error log. Can you post it?

Best,

Bruno

Le jeu. 20 juil. 2023 à 04:51, giuseppe orlando <[email protected]> a
écrit :

> Dear Bruno,
> I tried to reinstall Kokkos removing the -DCMAKE_CXX_FLAGS option, but I
> get the same error during the creation of the Makefile for deal.II. I will
> try to figure out which might be the problem in the follwing days.
>
> Best,
>
> Giuseppe
>
> Il giorno mercoledì 19 luglio 2023 alle 19:36:53 UTC+2
> [email protected] ha scritto:
>
>> Giuseppe,
>>
>> I think the issue is because you set -DCMAKE_CXX_FLAGS=-arch=sm_60 when
>> compiling Kokkos. This is not necessary because Kokkos takes care of that
>> when you use -DKokkos_ARCH_PASCAL60=ON. Since you set that as a CXX flags
>> it might be passed to MPI when it shouldn't. The rest looks good.
>>
>> Best,
>>
>> Bruno
>>
>>
>> Le mer. 19 juil. 2023 à 13:29, giuseppe orlando <[email protected]> a
>> écrit :
>>
>>> Dear Bruno,
>>> thanks for the suggestion. I tried to follow it, but I still the get
>>> same error during the creation of the Makefile. Just to sum up I typed
>>> "export OMPI_CXX=/project/sm77/bin/kokkos/bin/nvcc_wrapper"
>>> "cmake -DCMAKE_INSTALL_PREFIX=/project/sm77/bin/dealII/9.5.1/
>>> -DCMAKE_CXX_COMPILER=/project/sm77/bin/kokkos/bin/nvcc_wrapper
>>> -DDEAL_II_WITH_P4EST=ON -DP4EST_DIR=/project/sm77/bin/p4est/
>>> -DDEAL_II_WITH_MPI=ON -DDEAL_II_WITH_CUDA=ON
>>> -DDEAL_II_MPI_WITH_DEVICE_SUPPORT=ON -DKOKKOS_DIR=/project/sm77/bin/kokkos
>>> ../."
>>>
>>> At this point, I'm wondering if the problem could be related to how I
>>> installed Kokkos. This is the command to generate the Makefile for Kokkos
>>> and the installation went good, but at this point, I really don't know.
>>>
>>> "cmake -DCMAKE_CXX_COMPILER=/project/sm77/kokkos/bin/nvcc_wrapper
>>> -DCMAKE_INSTALL_PREFIX=/project/sm77/bin/kokkos
>>> -DCMAKE_CXX_FLAGS=-arch=sm_60 -DKokkos_ENABLE_CUDA_LAMBDA=ON
>>> -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_PASCAL60=ON ../."
>>>
>>> Best,
>>>
>>> Giuseppe
>>>
>>> Il giorno mercoledì 19 luglio 2023 alle 15:09:28 UTC+2
>>> [email protected] ha scritto:
>>>
>>>> Giuseppe,
>>>>
>>>> Your configuration line looks good. I use the same but I also export
>>>> OMPI_CXX=/path/kokkos/bin/nvcc_wrapper
>>>>
>>>> Best,
>>>>
>>>> Bruno
>>>>
>>>> On Wednesday, July 19, 2023 at 4:38:07 AM UTC-4 [email protected]
>>>> wrote:
>>>>
>>>> Hello everyone,
>>>> I'm writing this post because I'm having some issues to compile the
>>>> latest release. I would need a version which supports CUDA and MPI being
>>>> CUDA-aware. Hence, I installed Kokkos using the flags
>>>> -DKokkos_ENABLE_CUDA=ON and -DKokkos_ENABLE_CUDA_LAMBDA=ON. Then, I tried
>>>> to build the Makefile specifying as CXX compiler the 'nvcc_wrapper' in
>>>> Kokkos, namely using -DCMAKE_CXX_COMPILER=/path/kokkos/bin/nvcc_wrapper and
>>>> using the flags -DDEAL_II_WITH_MPI=ON, -DDEAL_II_WITH_CUDA=ON,
>>>> -DDEAL_II_MPI_WITH_DEVICE_SUPPORT=ON, -DKOKKOS_DIR=${Kokkos_dir}, but I get
>>>> an error in finding MPI
>>>>
>>>> [image: error_compilation_9_5.png]
>>>> I also tried to specify the compiler I have always used with the
>>>> previous version via -DMPI_CXX_COMPILER flag, but I get the same error. Did
>>>> someone encounter the same issue? Am I supposed to use 'nvcc_wrapper' also
>>>> for MPI?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Best,
>>>>
>>>> Giuseppe
>>>>
>>>> --
>>> The deal.II project is located at http://www.dealii.org/
>>> For mailing list/forum options, see
>>> https://groups.google.com/d/forum/dealii?hl=en
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "deal.II User Group" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/dealii/7VthT7AeI4Q/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/dealii/d4717449-8c4a-48d2-b0eb-c56a4381f631n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/dealii/d4717449-8c4a-48d2-b0eb-c56a4381f631n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/dealii/7VthT7AeI4Q/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/eb8caa99-28b8-455b-ad67-eac3e348931en%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/eb8caa99-28b8-455b-ad67-eac3e348931en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAGVt9eOhzc%2BE8Xsb83F6CemPoZ2e8NYVqPx3epE7A2_%3Dczdajw%40mail.gmail.com.

Reply via email to