diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index 44b1e85a33..3ef1ad1a8a 100755 --- a/hipamd/bin/hipcc +++ b/hipamd/bin/hipcc @@ -79,6 +79,11 @@ if ($HIP_PLATFORM eq "hcc") { $HIPLDFLAGS .= " -L$HSA_PATH/lib -lhsa-runtime64 -lhc_am"; # Add trace marker library: + # TODO - once we cleanly separate the HIP API headers from HIP library headers this logic should move to CMakebuild option - apps do not need to see the marker library. + $marker_inc_path = "$marker_path/include"; + if (-e $marker_inc_path) { + $HIPCXXFLAGS .= " -I$marker_inc_path"; + } $marker_lib_path = "$marker_path/bin/x86_64"; if (-e $marker_lib_path) {