--
You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/6961f82c.d7ad.174256681c7.Coremail.bianqy818%40163.com.
On 26. Aug 2020, at 03:28, Qingyun BIAN <bian...@163.com> wrote:Hi Frank,Thank you very much for your reply! I met the same error when using the latest git version.I changed the configure code to-----
if test "$CC_COMMON_NAME" = "icc"; then
CFLAGS="$CFLAGS -diag-disable=188,869,271"
if test "$MIC" = "yes"; thenCC="$CC -mmic -fPICfifi
and this issue was fixed. However, I met an new error as followed.------pe_libpfm4_events.c:(.text+0x1fca): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x2075): undefined reference to `__intel_sse2_strlen'../libpapi.a(pe_libpfm4_events.o): In function `_peu_libpfm4_init':pe_libpfm4_events.c:(.text+0x2338): undefined reference to `__intel_sse2_strdup'../libpapi.a(pe_libpfm4_events.o): In function `_pe_libpfm4_init':pe_libpfm4_events.c:(.text+0x260d): undefined reference to `__intel_sse2_strdup'../libpapi.a(perf_event_uncore.o): In function `_peu_read':/home/bianqy/pakages/papi/src/components/perf_event_uncore/perf_event_uncore.c:1041: undefined reference to `_intel_fast_memcpy'../libpapi.a(perf_event_uncore.o): In function `_peu_init_control_state':perf_event_uncore.c:(.text+0x1f2c): undefined reference to `_intel_fast_memset'../libpapi.a(x86_cpuid_info.o): In function `_x86_cache_info':/home/bianqy/pakages/papi/src/x86_cpuid_info.c:76: undefined reference to `__intel_sse2_strncmp'../libpapi.a(x86_cpuid_info.o): In function `_x86_cache_info':x86_cpuid_info.c:(.text+0x55a): undefined reference to `__intel_sse2_strncmp'../libpapi.a(linux-memory.o): In function `_linux_get_dmem_info':/home/bianqy/pakages/papi/src/linux-memory.c:65: undefined reference to `__intel_sse2_strspn'../libpapi.a(linux-memory.o): In function `_linux_get_dmem_info':linux-memory.c:(.text+0xdf): undefined reference to `__intel_sse2_strspn'linux-memory.c:(.text+0xfc): undefined reference to `__intel_sse2_strspn'linux-memory.c:(.text+0x119): undefined reference to `__intel_sse2_strspn'linux-memory.c:(.text+0x136): undefined reference to `__intel_sse2_strspn'../libpapi.a(linux-memory.o):linux-memory.c:(.text+0x153): more undefined references to `__intel_sse2_strspn' follow../libpapi.a(linux-memory.o): In function `generic_get_memory_info':linux-memory.c:(.text+0x583): undefined reference to `__intel_sse2_strncmp'../libpapi.a(linux-memory.o): In function `_linux_update_shlib_info':/home/bianqy/pakages/papi/src/linux-memory.c:1155: undefined reference to `_intel_fast_memset'/home/bianqy/pakages/papi/src/linux-memory.c:1176: undefined reference to `__intel_sse2_strcpy'collect2: error: ld returned 1 exit status
make[1]: *** [mpi_hl] Error 1make[1]: Leaving directory `/home/bianqy/pakages/papi/src/ctests'make: *** [ctests] Error 2
(base) [bianqy@mu01 src]$Followed is my compiler information.CC=icc F77=ifort/opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc/opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifortAny suggestions? Thank you!Bian
At 2020-08-25 21:46:28, "Frank Winkler" <frank....@icl.utk.edu> wrote:
On 27. Aug 2020, at 04:29, Qingyun BIAN <bian...@163.com> wrote:
Hi Frank,I tried the following as you suggested, and the installation is completed.
./configure --with-tests="ctests ftests"makemake install
But I'm curious why the MPI test failed and why mpicc was using gcc instead of icc.Could you please take a look at my configure.out and make.out?I'm using the latest git version, and the configure codes are not changed this time. Followed are the commands I used:./configure --prefix=/home/bianqy/usr/local/software/papi_test \CC=/opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc \F77=/opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort \... |& tee configure.outmake > make.out 2>&1And Belowed are my compilers for reference:$which icc/opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc$which ifort/opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort$which mpicc/opt/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/bin/mpicc$which mpif77/opt/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/bin/mpif77$which gcc/usr/bin/gcc$which gfortran/usr/bin/gfortran
<configure.out><make.out>
On 28. Aug 2020, at 02:54, Qingyun BIAN <bian...@163.com> wrote:
Hi Frank,Followed is my mpicc information:$mpicc -vmpigcc for the Intel(R) MPI Library 2018 Update 1 for Linux*Copyright(C) 2003-2017, Intel Corporation. All rights reserved.Using built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapperTarget: x86_64-redhat-linuxConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linuxThread model: posixgcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)Since MPI uses gcc, I tried the following commands and met a new error../configure --prefix=/home/bianqy/usr/local/software/papi_test \CC=/usr/bin/gcc \
... |& tee configure.outmake > make.out 2>&1
Error information (see details in make.out):../libpapi.a(pe_libpfm4_events.o):pe_libpfm4_events.c:(.text+0x1b2f): more undefined references to `__intel_sse2_strdup' follow../libpapi.a(pe_libpfm4_events.o): In function `allocate_native_event':pe_libpfm4_events.c:(.text+0x1bd9): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x1bf0): undefined reference to `__intel_sse2_strdup'pe_libpfm4_events.c:(.text+0x1d7c): undefined reference to `__intel_sse2_strchr'pe_libpfm4_events.c:(.text+0x1e19): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x1e2d): undefined reference to `__intel_sse2_strncmp'pe_libpfm4_events.c:(.text+0x1f49): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x1f75): undefined reference to `__intel_sse2_strcat'pe_libpfm4_events.c:(.text+0x1f91): undefined reference to `__intel_sse2_strncat'
pe_libpfm4_events.c:(.text+0x1fca): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x2075): undefined reference to `__intel_sse2_strlen'../libpapi.a(pe_libpfm4_events.o): In function `_peu_libpfm4_init':pe_libpfm4_events.c:(.text+0x2338): undefined reference to `__intel_sse2_strdup'../libpapi.a(pe_libpfm4_events.o): In function `_pe_libpfm4_init':pe_libpfm4_events.c:(.text+0x260d): undefined reference to `__intel_sse2_strdup'../libpapi.a(perf_event_uncore.o): In function `_peu_read':/home/bianqy/pakages/papi/src/components/perf_event_uncore/perf_event_uncore.c:1041: undefined reference to `_intel_fast_memcpy'../libpapi.a(perf_event_uncore.o): In function `_peu_init_control_state':perf_event_uncore.c:(.text+0x1f2c): undefined reference to `_intel_fast_memset'
collect2: error: ld returned 1 exit status
make[1]: *** [papi_avail] Error 1make[1]: Leaving directory `/home/bianqy/pakages/papi/src/utils'make: *** [utils] Error 2Attached are the latest configure.out and make.out in case you need it.
Thank you very much!Bian
<configure.out><make.out>
On 28. Aug 2020, at 14:31, Qingyun BIAN <bian...@163.com> wrote:
Hi Frank,My system doesn't use "module" environment. No modules are loaded.Followed are all the compiler-related environment variables in my .bashrc file:source /opt/intel/compilers_and_libraries_2018/linux/bin/compilervars.sh intel64export MPICC=/opt/intel/impi/2018.1.163/intel64/bin/mpiccexport MPICXX=/opt/intel/impi/2018.1.163/intel64/bin/mpicxxexport MPIF77=/opt/intel/impi/2018.1.163/intel64/bin/mpif77export MPIF90=/opt/intel/impi/2018.1.163/intel64/bin/mpif90I cloned a new papi repo, and tried the following commands as you suggested:./configure --prefix=/home/bianqy/usr/local/software/papi_testmakeand got an error message:icc -I../testlib -I../validation_tests -I.. -I. -g -diag-disable 188,869,271 -O1 attach_validate.c ../testlib/libtestlib.a ../validation_tests/instructions_testcode.o ../libpapi.a -o attach_validateicc -I../testlib -I../validation_tests -I.. -I. -g -diag-disable 188,869,271 -O1 attach_cpu_validate.c ../testlib/libtestlib.a ../testlib/do_loops.o ../libpapi.a -o attach_cpu_validateicc -I../testlib -I../validation_tests -I.. -I. -g -diag-disable 188,869,271 -O1 attach_cpu_sys_validate.c ../testlib/libtestlib.a ../testlib/do_loops.o ../libpapi.a -o attach_cpu_sys_validate
/opt/intel/impi/2018.1.163/intel64/bin/mpicc -I../testlib -I../validation_tests -I.. -I. -g -diag-disable 188,869,271 -O1 mpi_hl.c ../testlib/libtestlib.a ../testlib/do_loops.o ../libpapi.a -o mpi_hlgcc: error: 188,869,271: No such file or directorymake[1]: *** [mpi_hl] Error 1make[1]: Leaving directory `/home/bianqy/pakages/papi/src/ctests'make: *** [ctests] Error 2
It seems that if I doesn't specify compiler, the current compiler is icc not gcc. And since mpi uses gcc, an error as above occured.But if I specify the compiler with the following commands:./configure --prefix=/home/bianqy/usr/local/software/papi_test \CC=/usr/bin/gccmakeI got anther error:
../libpapi.a(pe_libpfm4_events.o):pe_libpfm4_events.c:(.text+0x1b2f): more undefined references to `__intel_sse2_strdup' follow../libpapi.a(pe_libpfm4_events.o): In function `allocate_native_event':pe_libpfm4_events.c:(.text+0x1bd9): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x1bf0): undefined reference to `__intel_sse2_strdup'pe_libpfm4_events.c:(.text+0x1d7c): undefined reference to `__intel_sse2_strchr'pe_libpfm4_events.c:(.text+0x1e19): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x1e2d): undefined reference to `__intel_sse2_strncmp'pe_libpfm4_events.c:(.text+0x1f49): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x1f75): undefined reference to `__intel_sse2_strcat'pe_libpfm4_events.c:(.text+0x1f91): undefined reference to `__intel_sse2_strncat'pe_libpfm4_events.c:(.text+0x1fca): undefined reference to `__intel_sse2_strlen'pe_libpfm4_events.c:(.text+0x2075): undefined reference to `__intel_sse2_strlen'../libpapi.a(pe_libpfm4_events.o): In function `_peu_libpfm4_init':pe_libpfm4_events.c:(.text+0x2338): undefined reference to `__intel_sse2_strdup'../libpapi.a(pe_libpfm4_events.o): In function `_pe_libpfm4_init':pe_libpfm4_events.c:(.text+0x260d): undefined reference to `__intel_sse2_strdup'../libpapi.a(perf_event_uncore.o): In function `_peu_read':/home/bianqy/pakages/papi/src/components/perf_event_uncore/perf_event_uncore.c:1041: undefined reference to `_intel_fast_memcpy'../libpapi.a(perf_event_uncore.o): In function `_peu_init_control_state':perf_event_uncore.c:(.text+0x1f2c): undefined reference to `_intel_fast_memset'collect2: error: ld returned 1 exit statusmake[1]: *** [papi_avail] Error 1make[1]: Leaving directory `/home/bianqy/pakages/papi/src/utils'make: *** [utils] Error 2
Followed is the information given by "mpicc -show":gcc -I/opt/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/include -L/opt/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib/release_mt -L/opt/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker /opt/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2107.0.0/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2017.0.0/intel64/lib -lmpifort -lmpi -lmpigi -ldl -lrt -lpthreadBest,Bian
make > make.out 2>&1
At 2020-08-27 17:32:48, "Frank Winkler" <frank....@icl.utk.edu> wrote:
I cloned a fresh copy of the repo and run the following command:
./configure --prefix=/home/bianqy/usr/local/software/papi_test \
CC=/usr/bin/gcc \makemake install