Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

exclusive lock failed

didomax
Beginner
390 Views

Hi everybody,

I am trying to compile my code with the option -prof-use but I get a very strange error message from the icc compiler

mpicc -Wall -O3 -fPIC -xHost -ipo -prof-use -I./include -I../include/ -c chemistry_data.c
ERROR: exclusive lock of ./pgopti.dpi.lock failed, code = 38
Function not implemented/opt/intel/Compiler/11.0/074/bin/intel64/profmerge: ERROR: Failed to create lock file for .dpi creation, ./pgopti.dpi.lock

Do you have any idea what I am doing wrong?

Many thanks in advance,
Max

0 Kudos
2 Replies
TimP
Honored Contributor III
390 Views
Quoting - didomax

mpicc -Wall -O3 -fPIC -xHost -ipo -prof-use -I./include -I../include/ -c chemistry_data.c
ERROR: exclusive lock of ./pgopti.dpi.lock failed, code = 38
Function not implemented/opt/intel/Compiler/11.0/074/bin/intel64/profmerge: ERROR: Failed to create lock file for .dpi creation, ./pgopti.dpi.lock

This looks as if you still have a job executing (hung?) which is trying to update the profile data.
0 Kudos
Martin_C_
Beginner
390 Views
I get a similar message when profmerge'ing:

ERROR: exclusive lock of ./pgopti.dpi.lock failed, code = 5
Input/output errorprofmerge: ERROR: Failed to create lock file for .dpi creation, ./pgopti.dpi.lock

compile command:
mpicxx -prof_gen -p -fexceptions -fpic -gcc-version=412 -g -Dlinux -DANSI ...
and
mpif90 -prof_gen -p -save -FR -r8 -module ./Modules -stand f03 -warn all -fpe0 -check all -traceback -fp-stack-check -g -prof_gen -p ...

I compiled using icc and ifort versions:

Intel C Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1 Build 20090630 Package ID: l_cproc_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

ifort -V
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1 Build 20090630 Package ID: l_cprof_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

0 Kudos
Reply