[sundials-users] Problem building sundials 6.4.0

21 views
Skip to first unread message

David Halpern

unread,
Oct 24, 2022, 12:26:21 PM10/24/22
to SUNDIAL...@listserv.llnl.gov
Hi,

I am unable to build the latest sundials 6.4.0 using the intel oneapi compilers icx and ifx. Please see below the
error messages uding the "make" stage. Any suggestions would be appreciated.
Thanks.

[ 86%] Building Fortran object examples/nvector/serial/CMakeFiles/test_fnvector_serial_mod.dir/__/test_nvector.f90.o
/home/dhalpern/Downloads/sundials-6.4.0/examples/nvector/test_nvector.f90(116): error #6259: This array or function or substring is invalid in constant expressions.   [C_LOC]
  V = (/c_loc(Y1), c_loc(Y2), c_loc(Y3)/)
--------^
/home/dhalpern/Downloads/sundials-6.4.0/examples/nvector/test_nvector.f90(116): error #6259: This array or function or substring is invalid in constant expressions.   [C_LOC]
  V = (/c_loc(Y1), c_loc(Y2), c_loc(Y3)/)
-------------------^
/home/dhalpern/Downloads/sundials-6.4.0/examples/nvector/test_nvector.f90(116): error #6259: This array or function or substring is invalid in constant expressions.   [C_LOC]
  V = (/c_loc(Y1), c_loc(Y2), c_loc(Y3)/)
------------------------------^
/home/dhalpern/Downloads/sundials-6.4.0/examples/nvector/test_nvector.f90(116): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.
  V = (/c_loc(Y1), c_loc(Y2), c_loc(Y3)/)
--------^
compilation aborted for /home/dhalpern/Downloads/sundials-6.4.0/examples/nvector/test_nvector.f90 (code 1)
make[2]: *** [examples/nvector/serial/CMakeFiles/test_fnvector_serial_mod.dir/build.make:101: examples/nvector/serial/CMakeFiles/test_fnvector_serial_mod.dir/__/test_nvector.f90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:13132: examples/nvector/serial/CMakeFiles/test_fnvector_serial_mod.dir/all] Error 2


David Halpern, PhD

Professor

Department of Mathematics

University of Alabama

Tuscaloosa AL 35487



To unsubscribe from the SUNDIALS-USERS list: write to: mailto:SUNDIALS-USERS-...@LISTSERV.LLNL.GOV

Gardner, David James

unread,
Oct 24, 2022, 1:28:44 PM10/24/22
to SUNDIAL...@listserv.llnl.gov
Hi David,

Could you provide some more information about your build setup. What CMake options were set when configuring the build and what version of the Intel compilers are you using?

Thanks,
David


From: sundials-users <sundial...@llnl.gov> on behalf of David Halpern <dhal...@UA.EDU>
Sent: Saturday, October 22, 2022 7:56 AM
To: sundials-users <sundial...@llnl.gov>
Subject: [sundials-users] Problem building sundials 6.4.0
 

David Halpern

unread,
Oct 24, 2022, 2:00:50 PM10/24/22
to SUNDIAL...@listserv.llnl.gov
Hi David,

I used cmake 3.24 and the 2022 version of intel oneapi.

The command was:

 ccmake ../. -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DCMAKE_C_COMPILER=/opt/intel/oneapi/compiler/latest/linux/bin/icx -DCMAKE_C_STANDARD=99 -DCMAKE_Fortran_COMPILER=/opt/intel/oneapi/compiler/latest/linux/bin/intel64/ifort -DENABLE_LAPACK=ON


Thanks.

David

David Halpern, PhD

Professor

Department of Mathematics

University of Alabama

Tuscaloosa AL 35487


From: sundial...@llnl.gov <sundial...@llnl.gov> on behalf of Gardner, David James <gard...@llnl.gov>
Sent: Monday, October 24, 2022 12:28 PM
To: SUNDIAL...@LISTSERV.LLNL.GOV <SUNDIAL...@LISTSERV.LLNL.GOV>
Subject: [EXTERNAL] Re: [sundials-users] Problem building sundials 6.4.0
 

Gardner, David James

unread,
Oct 24, 2022, 4:31:22 PM10/24/22
to SUNDIAL...@listserv.llnl.gov
Hi David,

I tried to reproduce the error you're seeing but could not do so with oneAPI 2022.1 (icx 2022.0.0 and ifort 2021.5.0).  Could you send the CMakeCache.txt file from your build? Do you see this same error when using the ifx compiler rather than ifort?

Thanks,
David

From: sundials-users <sundial...@llnl.gov> on behalf of David Halpern <dhal...@UA.EDU>
Sent: Monday, October 24, 2022 10:52 AM
To: sundials-users <sundial...@llnl.gov>
Subject: Re: [sundials-users] [EXTERNAL] Re: [sundials-users] Problem building sundials 6.4.0
 

David Halpern

unread,
Oct 26, 2022, 10:48:03 AM10/26/22
to SUNDIAL...@listserv.llnl.gov
David,

Yes, I also tried ifx and it failed. Please see attached CMakeCache.txt.

David

David Halpern, PhD

Professor

Department of Mathematics

University of Alabama

Tuscaloosa AL 35487


From: sundial...@llnl.gov <sundial...@llnl.gov> on behalf of Gardner, David James <gard...@llnl.gov>
Sent: Monday, October 24, 2022 3:30 PM
To: SUNDIAL...@LISTSERV.LLNL.GOV <SUNDIAL...@LISTSERV.LLNL.GOV>
CMakeCache.txt

Gardner, David James

unread,
Oct 26, 2022, 8:58:58 PM10/26/22
to SUNDIAL...@listserv.llnl.gov

Hi David,

 

Thanks for the cache file, I was able to reproduce the error with the oneAPI 2022.2 compilers (icx 2022.2.0 and ifort 2021.7.0). Attached is a patch to address the compilation error and I’ve opened a pull request to merge this fix into the SUNDIALS develop branch. Let me know if run into any other issues.

 

Thanks,

David

sundials-6.4.0-intel-oneapi-2022.2-fortran.patch

David Halpern

unread,
Oct 27, 2022, 5:47:37 PM10/27/22
to SUNDIAL...@listserv.llnl.gov
David,

The patch worked like a charm. Thanks.

David

David Halpern, PhD

Professor

Department of Mathematics

University of Alabama

Tuscaloosa AL 35487


From: sundial...@llnl.gov <sundial...@llnl.gov> on behalf of Gardner, David James <gard...@llnl.gov>
Sent: Wednesday, October 26, 2022 7:58 PM
Reply all
Reply to author
Forward
0 new messages