Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

ITT API fortran calls with Advisor

Paolo__
Beginner
1,970 Views

Hello,

I would like to use the ITT library functions to delimit a part of my code where to collect Advisor data.

It is a fortran code compiled with IFORT version 2021.12.0 Package ID: w_oneAPI_2024.2.1.1083 (attached the VS project of a simple example).

I entered the following instructions:

...
USE ITTNOTIFY
...
call ITT_PAUSE()
...
call ITT_RESUME()
...
 
Including the library: libittnotify.lib
Setting the include directory path: $(ADVISOR_2025_DIR)\include\intel64
And the library directory path: $(ADVISOR_2025_DIR)\lib64
 
But I get the following error while linking:
Linking...
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_pause_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_PAUSE
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_resume_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_RESUME
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_thread_ignore_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_THREAD_IGNORE
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_suppress_push_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SUPPRESS_PUSH
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_suppress_pop_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SUPPRESS_POP
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_suppress_mark_range_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SUPPRESS_MARK_RANGE
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_suppress_clear_range_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SUPPRESS_CLEAR_RANGE
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_sync_prepare_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SYNC_PREPARE
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_sync_cancel_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SYNC_CANCEL
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_sync_acquired_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SYNC_ACQUIRED
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_sync_releasing_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SYNC_RELEASING
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_fsync_prepare_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_FSYNC_PREPARE
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_fsync_cancel_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_FSYNC_CANCEL
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_fsync_acquired_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_FSYNC_ACQUIRED
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_fsync_releasing_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_FSYNC_RELEASING
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_sync_destroy_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SYNC_DESTROY
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_sync_createA_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SYNC_CREATE
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_sync_renameA_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_SYNC_RENAME
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_thread_set_nameA_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_THREAD_SET_NAME
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_heap_record_memory_growth_begin_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_HEAP_RECORD_MEMORY_GROWTH_BEGIN
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_heap_record_memory_growth_end_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_HEAP_RECORD_MEMORY_GROWTH_END
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_heap_reset_detection_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_HEAP_RESET_DETECTION
libittnotify.lib(ittfortran.obj) : error LNK2019: unresolved external symbol ___itt_heap_record_ptr__3_0 referenced in function ITTNOTIFY_mp_ITT_HEAP_RECORD
x64\Release\TestITTLib.exe : fatal error LNK1120: 23 unresolved externals
 
0 Kudos
0 Replies
Reply