Re: [hpx-users] HPX 1.4.0 release candidate 2

2019-12-11 Thread Kevin Huck
Kor -

Ah, I see now.  No, step 2 shouldn’t be necessary.  Can you provide some more 
information about your build environment (OS, architecture, compiler, compiler 
version) and which HPX commit tag you are working with?  When you build your 
application, do you use cmake or configure with pkg-config?  It’s possible that 
your linker is not adding libhpx_apex.so from the HPX configuration output.  In 
addition, can you submit an issue for this on github?  We haven’t seen this 
problem in our tests, but I can see how it might happen.

Thanks!
Kevin
--
Kevin Huck, PhD
Research Associate / Computer Scientist
OACISS - Oregon Advanced Computing Institute for Science and Society
University of Oregon
kh...@cs.uoregon.edu
http://tau.uoregon.edu


> On Dec 11, 2019, at 2:31 AM, Jong, K. de (Kor)  wrote:
> 
> On 12/10/19 4:37 PM, Kevin Huck wrote:
>> In order to collect and write the OTF2 trace, please set the environment 
>> variable APEX_OTF2=1.  For example:
>> 
>> export APEX_OTF2=1
>> ./apex_fibonacci
>> 
>> or
>> 
>> APEX_OTF2=1 ./apex_fibonacci
> 
> Yes, that works fine. Maybe I am wrong, but I think this also used to work:
> 
> APEX_OTF2=1 ./
> 
> without explicitly instrumenting my_hpx_program code with APEX calls. 
> This currently does not work though.
> 
> I figured out that to get an APEX trace I have to include  
> and call hpx::register_startup_function(&apex::print_options), before 
> calling hpx::init. (Only) than my hpx program dumps a trace. I am happy 
> with that. I can now analyze the trace. My point is that I am pretty 
> sure that before 1.4.0 I did not have to change my code to get a 
> (default) trace from APEX.
> 
> This example from the APEX doc does not work with 1.4.0-rc2:
> 
> APEX_SCREEN_OUTPUT=1 ./fibonacci
> 
> No trace is printed to the screen. Also, except for apex_fibonacci, non 
> of the hpx examples is linked to libhpx_apex.so. In the case of 
> my_hpx_program, the binary is linked to libhpx_apex.so only when I 
> explicitly call an APEX api function. Before that it isn't linked to 
> libhpx_apex.so.
> 
> To generate a minimal/default APEX trace from an HPX program its seems 
> these are the steps:
> 1. Build HPX with support for APEX
> 2. Call an APEX api function to make the program link to libhpx_apex.so
> 3. Generate trace
> 
> Is step 2 really necessary? Is there a better way to trigger the link to 
> libhpx_apex.so?
> 
> Kor
___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] HPX 1.4.0 release candidate 2

2019-12-10 Thread Kevin Huck
In order to collect and write the OTF2 trace, please set the environment 
variable APEX_OTF2=1.  For example:

export APEX_OTF2=1
./apex_fibonacci

or 

APEX_OTF2=1 ./apex_fibonacci

Thanks -
Kevin

> On Dec 10, 2019, at 4:33 AM, Hartmut Kaiser  wrote:
> 
> Just cc'ing Kevin to make sure this gets the necessary attention...
> 
> Regards Hartmut
> ---
> http://stellar.cct.lsu.edu
> https://github.com/STEllAR-GROUP/hpx
> 
> 
>> -Original Message-
>> From: hpx-users-boun...@stellar.cct.lsu.edu > boun...@stellar.cct.lsu.edu> On Behalf Of Jong, K. de (Kor)
>> Sent: Tuesday, December 10, 2019 4:23 AM
>> To: hpx-users@stellar.cct.lsu.edu
>> Subject: Re: [hpx-users] HPX 1.4.0 release candidate 2
>> 
>> On 12/6/19 5:28 PM, Simberg Mikael wrote:
>>> APEX integration has also
>>> been updated and can be enabled with -DHPX_WITH_APEX=ON and
>>> -DHPX_WITH_APEX_TAG=develop. The latter option will be unnecessary for
>>> the final release.
>> 
>> I am interested in generating traces in OTF2 format to load into Vampir.
>> For that I am testing 1.4.0-rc2 with support for APEX and OTF2.
>> 
>> Building HPX with support for APEX works fine, great! I have also built
>> OTF2 (version 2.2) and passed in the APEX_WITH_OTF2 flag. I noticed that
>> otf2_listener.cpp.o was being built. I have no reason to believe the
>> resulting HPX does not have support for APEX+OTF2. Also:
>> 
>> ./fibonacci --hpx:info | grep APEX
>>   HPX_WITH_APEX=ON
>>   HPX_WITH_APEX_NO_UPDATE=OFF
>> 
>> When I try this, no trace is printed, though:
>> 
>> APEX_SCREEN_OUTPUT=1 ./fibonacci
>> 
>> When I try this, a trace is printed:
>> 
>> APEX_SCREEN_OUTPUT=1 ./apex_fibonacci
>> 
>> I expected the first command to also print a trace. Is automatic
>> instrumentation of HPX with APEX maybe not working yet in 1.4.0-rc2?
>> 
>> Kor
>> ___
>> hpx-users mailing list
>> hpx-users@stellar.cct.lsu.edu
>> https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
> 
> 

--
Kevin Huck, PhD
Research Associate / Computer Scientist
OACISS - Oregon Advanced Computing Institute for Science and Society
University of Oregon
kh...@cs.uoregon.edu
http://tau.uoregon.edu







___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] Link error building HPX with support for APEX

2019-06-04 Thread Kevin Huck
Yeah, HPX changed build dependencies without warning, these are now fixed.  
You'll need to add an extra option to the HPX config to pull the latest from 
APEX:

-DHPX_WITH_APEX_NO_UPDATE=FALSE -DHPX_WITH_APEX_TAG=develop

Thanks -
Kevin

> On Jun 4, 2019, at 1:24 AM, Biddiscombe, John A.  wrote:
> 
>> I use the FetchContent module to integrate HPX into my project, which means 
>> my project is the main project. I think some paths in APEX' CMakeLists.hpx 
>> need to be adjusted, which I have done locally. Once I have the whole build 
>> working I can provide a patch or pull request with my edits.
> 
> Please do submit a PR (to the APEX repo though if it needs fixes) - I thought 
> I had fixed all those ages ago, but I guess some new ones have crept in.
> 
>>>> 
> Second, my build of HPX with support for APEX almost succeeds, but not 
> completely (repro-case at bottom of this message):
> <<<
> 
> My local projects that build using HPX are also failing with the similar 
> problems related to hpx_cache and also hpx/config.hpp include directory 
> problems.
> Can you confirm if you are using master branch, or a 1.3 release - the cache 
> stuff was not present in the 1.3 release.
> 
> Thanks
> 
> JB
> 
> /usr/bin/ld: cannot find -lhpx_cache
> collect2: error: ld returned 1 exit status
> _deps/hpx-build/src/CMakeFiles/hpx.dir/build.make:2769: recipe for target 
> 'lib/libhpx.so.1.3.0' failed
> make[2]: *** [lib/libhpx.so.1.3.0] Error 1
> CMakeFiles/Makefile2:1112: recipe for target 
> '_deps/hpx-build/src/CMakeFiles/hpx.dir/all' failed Building with 
> HPX_WITH_APEX=OFF succeeds, building with HPX_WITH_APEX=ON fails for lack of 
> hpx_cache. I cannot find any reference to the hpx_cache library in the HPX 
> and APEX sources. It is mentioned in three files in HPX' build directory, 
> though:
> ./CMakeFiles/Export/lib/cmake/HPX/HPXTargets.cmake
> ./lib/cmake/HPX/HPXTargets.cmake
> ./src/CMakeFiles/hpx.dir/link.txt
> 
> The CMake scripts contain this snippet:
> set_target_properties(apex PROPERTIES 
> 
>   INTERFACE_COMPILE_OPTIONS "-std=c++17" 
> 
>   INTERFACE_LINK_LIBRARIES "hpx_cache" 
> 
> )
> 
> Does anyone know how I can make my build succeed?
> 
> Thanks!
> 
> Kor
> 
> 
> 
> The simplest CMakeLists.txt with which I can recreate the issue is this one:
> 
> # dummy/CMakeLists.txt
> cmake_minimum_required(VERSION 3.12)
> project(dummy LANGUAGES CXX)
> 
> include(FetchContent)
> 
> set(HPX_WITH_EXAMPLES OFF CACHE BOOL "") set(HPX_WITH_TESTS OFF CACHE BOOL 
> "") set(HPX_WITH_APEX ON CACHE BOOL "")
> 
> FetchContent_Declare(hpx
> GIT_REPOSITORY https://github.com/STEllAR-GROUP/hpx
> GIT_TAG 1.3.0
> )
> 
> FetchContent_GetProperties(hpx)
> 
> if(NOT hpx_POPULATED)
> 
> FetchContent_Populate(hpx)
> 
> if(HPX_WITH_APEX)
> # I think something like this should be done in
> # APEX' CMakeLists.hpx
> include_directories(
> ${hpx_SOURCE_DIR}/libs/preprocessor/include
> ${hpx_SOURCE_DIR}/apex/src/apex
> ${hpx_SOURCE_DIR}/apex/src/contrib) 
> 
> endif()
> 
> add_subdirectory(${hpx_SOURCE_DIR} ${hpx_BINARY_DIR})
> 
> endif()
> # / dummy/CMakeLists.txt
> 
> The project can be built (until the above link error) like this:
> 
> mkdir dummy/build
> cd dummy/build
> cmake ..
> make
> ___
> hpx-users mailing list
> hpx-users@stellar.cct.lsu.edu
> https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
> 

--
Kevin Huck, PhD
Research Associate / Computer Scientist
OACISS - Oregon Advanced Computing Institute for Science and Society
University of Oregon
kh...@cs.uoregon.edu
http://tau.uoregon.edu







___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] TAU support v1.3.0

2019-05-30 Thread Kevin Huck
Karol -

Unfortunately, those instructions are out of date.  There is no HPX/TAU 
integration any more.

Instead, what you can do is use APEX to interface with TAU.

Remove these CMake options:
>  -DHPX_WITH_TAU=TRUE \
>  -DTAU_ROOT=$HOME/libs/tau-2.26 \
>  -DTAU_ARCH=x86_64 \
>  -DTAU_OPTIONS=-mpi-pthread \


And keep/use these CMake options:
>  -DHPX_WITH_APEX=TRUE \
>  -DAPEX_WITH_ACTIVEHARMONY=TRUE \
>  -DAPEX_WITH_PAPI=FALSE \
>  -DAPEX_WITH_MSR=FALSE \
>  -DAPEX_WITH_OTF2=FALSE \
>  -DACTIVEHARMONY_ROOT=$HOME/packages/harmony/ \

After configuring and building HPX, build TAU with:

git clone https://github.com/UO-OACISS/tau2.git
cd tau2
./configure -mpi -pthread -bfd=download
make install

Then add the TAU bin directory to your path (see the message at the end of the 
"configure" step).

Then, to run the program, do:

export APEX_TAU=1
tau_exec -T mpi,pthread -ebs 

APEX will measure the HPX tasks, passing them to TAU as timers.  TAU will also 
use event based sampling (-ebs) to periodically sample the program to build a 
hybrid timer/sample profile.  You can then load the profiles into the TAU 
program "paraprof" to visualize the data.




If you have access to the Vampir trace analysis tool, you can also just use 
APEX by itself to measure the program.  In that case, you would need these HPX 
configuration options:

 -DAPEX_WITH_OTF2=TRUE \
 -DACTIVEHARMONY_ROOT= \

...and you would set APEX_OTF2=1 before running the program to generate an OTF2 
trace for Vampir.  The OTF2 library can be found here: 
https://www.vi-hps.org/projects/score-p/  OTF2 is easy to build with "configure 
--prefix=/path" and "make && make install".

Let me know if you run into any problems.


Thanks -
Kevin
 

> On May 30, 2019, at 4:47 AM, Hartmut Kaiser  wrote:
> 
> Hey,
>  
> I’m cc’ing Kevin Huck on this email. He will be able to help.
>  
> Regards Hartmut
> ---
> http://stellar.cct.lsu.edu
> https://github.com/STEllAR-GROUP/hpx
>  
> From: hpx-users-boun...@stellar.cct.lsu.edu 
>  On Behalf Of kniedzie
> Sent: Thursday, May 30, 2019 5:07 AM
> To: hpx-users@stellar.cct.lsu.edu
> Subject: [hpx-users] TAU support v1.3.0
>  
> Hi all,
> 
> I am trying to use HPX v1.3.0 with TAU. I am following instructions from 
> https://khuck.github.io/xpress-apex/usage/#hpx-louisiana-state-university and 
> I am trying to integrate it using command:
> 
> cmake -DBOOST_ROOT=$HOME/libs/boost_1_62_0 \
>  -DCMAKE_INSTALL_PREFIX=$HOME/libs/hpx_1.3.0_build_system_apex \
>  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
>  -DHPX_WITH_MORE_THAN_64_THREADS=ON \
>  -DHPX_WITH_MAX_CPU_COUNT=26400 \
>  -DCMAKE_C_COMPILER=cc \
>  -DCMAKE_CXX_COMPILER=CC \
>  -DCMAKE_C_FLAGS="-latomic" \
>  -DCMAKE_CXX_FLAGS="-latomic" \
>  -DHPX_WITH_EXAMPLES=OFF \
>  -DHPX_WITH_MALLOC=system \
>  -DHPX_WITH_STATIC_LINKING=OFF \
>  -DHPX_WITH_STATIC_EXE_LINKING=OFF \
>  -DHPX_WITH_PARCELPORT_MPI=ON \
>  -DMPI_C_COMPILER=cc \
>  -DMPI_CXX_COMPILER=CC \
>  -DHPX_WITH_APEX=TRUE \
>  -DHPX_WITH_TAU=TRUE \
>  -DAPEX_WITH_ACTIVEHARMONY=TRUE \
>  -DAPEX_WITH_PAPI=FALSE \
>  -DAPEX_WITH_MSR=FALSE \
>  -DAPEX_WITH_OTF2=FALSE \
>  -DACTIVEHARMONY_ROOT=$HOME/packages/harmony/ \
>  -DTAU_ROOT=$HOME/libs/tau-2.26 \
>  -DTAU_ARCH=x86_64 \
>  -DTAU_OPTIONS=-mpi-pthread \
>  $HOME/packages/hpx
> 
> I receive:
> 
> CMake Warning:
>   Manually-specified variables were not used by the project:
> 
> HPX_WITH_STATIC_EXE_LINKING
> TAU_ARCH
> TAU_OPTIONS
> TAU_ROOT
> HPX_WITH_TAU
> 
>  
> 
> I checked CMakeLists.txt and there are not variables for TAU support.
> 
> So my questions are:
> 
> Does hpx still support tau?
> 
> If yes, how can I integrate it?
> 
> If no, are there any alternatives?
> 
> Best,
> 
> Karol Niedzielewski
> 
> Interdyscyplinarne Centrum Modelowania Matematycznego i Komputerowego (ICM), 
> Uniwersytet Warszawski // Interdisciplinary Centre for Mathematical and 
> Computational Modelling (ICM),  University of Warsaw
>  
> ul. Kupiecka 32, 03-046 Warsaw, Poland
> www.icm.edu.pl

--
Kevin Huck, PhD
Research Associate / Computer Scientist
OACISS - Oregon Advanced Computing Institute for Science and Society
University of Oregon
kh...@cs.uoregon.edu
http://tau.uoregon.edu







___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] HPX Profiling (TAU?)

2019-03-08 Thread Kevin Huck
Kilian -

APEX+OTF should work fine with distributed runs.  Are you running the job from 
a directory where you have write permission?  Here are some tips -

- OTF requires a "unification" process at the end of the run.  Ideally, I would 
use HPX to do that, but I haven't implemented that.  Instead, I use the 
filesystem.  So, each rank will write three (or so) "hidden" files in the 
current working directory, and rank/locality 0 will read them, unify them, and 
write out a "master" mapping for the other ranks.

- By default, APEX will write the OTF2_archive directory of OTF2 files in the 
current working directory.

- If you want to change the location of either of those two locations, set the 
APEX_OTF2_ARCHIVE_PATH environment variable before your run, and the files will 
be written there.  The default value for APEX_OTF2_ARCHIVE_PATH is "." (current 
working directory, relative).

Let me know if that works, and/or if you have any other problems.

Thanks -
Kevin

> On Mar 8, 2019, at 4:44 AM, Kilian Werner  wrote:
> 
> Thank you very much Kevin!
> 
> It works flawlessly and is a very handy profiling tool.
> 
> It is inteded to work within distributed settings to right?
> As soon as I run the application with mpirun e.g. with multiple localities 
> apex complains:
> 
> [OTF2] src/otf2_archive_int.c:1108: error: Unknown error code: Couldn't 
> create directories on root.
> OTF2 Error: INVALID, Unknown error code
> 
> 
> While I do not have root access while running the application, I do have 
> writing rights for the working directory (thus the directory where the 
> OTF2_archive is put).
> 
> Am I missing some additional steps for running apex otf2 support on multiple 
> locations, is it not inteded to support that or is the problem probably 
> located within my toolchain and environment?
> 
> Thanks,
> 
> Kilian
> 
> On Tue, 26 Feb 2019 10:13:12 -0800
> Kevin Huck  wrote:
>> Kilian -
>> You don't need TAU to generate OTF2 traces directly from APEX.  Here is what 
>> you need to generate them:
>> Get and build the OTF2 library (straightforward configure/make process):
>> https://www.vi-hps.org/projects/score-p/
>> Configure HPX with APEX enabled and OTF2 support enabled:
>> cmake  -DHPX_WITH_APEX=TRUE -DAPEX_WITH_OTF2=TRUE 
>> -DOTF2_ROOT=/path/to/otf2 ...
>> If you want to make sure you have the most recent APEX, you can also add:
>> -DHPX_WITH_APEX_NO_UPDATE=TRUE -DHPX_WITH_APEX_TAG=develop
>> ...but I think the current HPX master uses APEX 2.1.2, which is up to date.
>> After building HPX and your application, set the following environment 
>> variable before executing:
>> APEX_OTF2=1
>> You should see an OTF_archive directory after the run, you can load the 
>> APEX.otf2 file in vampir.
>> Let me know if you run into any problems -
>> Kevin
>>> On Feb 26, 2019, at 5:16 AM, Hartmut Kaiser  
>>> wrote:
>>> Kilian,
>>> I am cc'ing Kevin Huck to make sure he sees this. He is Mr. APEX and will be
>>> able to give you all the information you need.
>>> Regards Hartmut
>>> ---
>>> http://stellar.cct.lsu.edu
>>> https://github.com/STEllAR-GROUP/hpx
>>>> -Original Message-
>>>> From: hpx-users-boun...@stellar.cct.lsu.edu >>> boun...@stellar.cct.lsu.edu> On Behalf Of Kilian Werner
>>>> Sent: Tuesday, February 26, 2019 3:03 AM
>>>> To: hpx-users@stellar.cct.lsu.edu
>>>> Subject: [hpx-users] HPX Profiling (TAU?)
>>>> Dear list!
>>>> I am trying to optimize my HPX project and was looking for a way to
>>>> observe per-thread traces of the execution (in a vampir trace like
>>>> fashion).
>>>> I am already successfully utilizing APEX Support, however to my
>>>> understanding this only yields total times/percentages.
>>>> I did find references to HPX supporting TAU through APEX, however the
>>>> HPX_WITH_TAU flag was removed in
>>>> https://github.com/STEllAR-GROUP/hpx/pull/2380
>>>> Was TAU support dropped or did the process of building hpx with tau
>>>> change? If so, how would I go about building it.
>>>> If it was dropped are there any other ways to trace HPX in a vampir trace
>>>> / gantt-chart like fashion?
>>>> Best regards,
>>>> Kilian Werner
>>>> ___
>>>> hpx-users mailing list
>>>> hpx-users@stellar.cct.lsu.edu
>>>> https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
>> --
>> Kevin Huck, PhD
>> Research Associate / Computer Scientist
>> OACISS - Oregon Advanced Computing Institute for Science and Society
>> University of Oregon
>> kh...@cs.uoregon.edu
>> http://tau.uoregon.edu
> 

--
Kevin Huck, PhD
Research Associate / Computer Scientist
OACISS - Oregon Advanced Computing Institute for Science and Society
University of Oregon
kh...@cs.uoregon.edu
http://tau.uoregon.edu







___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] HPX Profiling (TAU?)

2019-02-26 Thread Kevin Huck
Kilian -

You don't need TAU to generate OTF2 traces directly from APEX.  Here is what 
you need to generate them:

Get and build the OTF2 library (straightforward configure/make process):
https://www.vi-hps.org/projects/score-p/

Configure HPX with APEX enabled and OTF2 support enabled:
cmake  -DHPX_WITH_APEX=TRUE -DAPEX_WITH_OTF2=TRUE 
-DOTF2_ROOT=/path/to/otf2 ...

If you want to make sure you have the most recent APEX, you can also add:
-DHPX_WITH_APEX_NO_UPDATE=TRUE -DHPX_WITH_APEX_TAG=develop

...but I think the current HPX master uses APEX 2.1.2, which is up to date.


After building HPX and your application, set the following environment variable 
before executing:
APEX_OTF2=1

You should see an OTF_archive directory after the run, you can load the 
APEX.otf2 file in vampir.

Let me know if you run into any problems -
Kevin

> On Feb 26, 2019, at 5:16 AM, Hartmut Kaiser  wrote:
> 
> Kilian,
> 
> I am cc'ing Kevin Huck to make sure he sees this. He is Mr. APEX and will be
> able to give you all the information you need.
> 
> Regards Hartmut
> ---
> http://stellar.cct.lsu.edu
> https://github.com/STEllAR-GROUP/hpx
> 
> 
>> -Original Message-
>> From: hpx-users-boun...@stellar.cct.lsu.edu > boun...@stellar.cct.lsu.edu> On Behalf Of Kilian Werner
>> Sent: Tuesday, February 26, 2019 3:03 AM
>> To: hpx-users@stellar.cct.lsu.edu
>> Subject: [hpx-users] HPX Profiling (TAU?)
>> 
>> Dear list!
>> 
>> I am trying to optimize my HPX project and was looking for a way to
>> observe per-thread traces of the execution (in a vampir trace like
>> fashion).
>> 
>> I am already successfully utilizing APEX Support, however to my
>> understanding this only yields total times/percentages.
>> 
>> I did find references to HPX supporting TAU through APEX, however the
>> HPX_WITH_TAU flag was removed in
>> https://github.com/STEllAR-GROUP/hpx/pull/2380
>> 
>> Was TAU support dropped or did the process of building hpx with tau
>> change? If so, how would I go about building it.
>> 
>> If it was dropped are there any other ways to trace HPX in a vampir trace
>> / gantt-chart like fashion?
>> 
>> Best regards,
>> 
>> Kilian Werner
>> ___
>> hpx-users mailing list
>> hpx-users@stellar.cct.lsu.edu
>> https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
> 
> 

--
Kevin Huck, PhD
Research Associate / Computer Scientist
OACISS - Oregon Advanced Computing Institute for Science and Society
University of Oregon
kh...@cs.uoregon.edu
http://tau.uoregon.edu







___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] Questions about benchmarking hpx tasks

2017-09-19 Thread Kevin Huck
Tobias -

Sorry for the slow reply - I’m traveling and in all day meetings today and 
tomorrow.

To enable OTF2 output, set the following environment variable before execution:
APEX_OTF2=1

You can control the location of the OTF2 archive with APEX_OTF2_ARCHIVE_PATH 
and APEX_OTF2_ARCHIVE_NAME environment variables, although the defaults are 
usually sufficient.

Please email me directly if you have any other questions.

Thanks -
Kevin

> On Sep 19, 2017, at 10:23 AM, Hartmut Kaiser  wrote:
> 
> Tobias,
> 
>> Thank you all for your replies.
>> I have available for me Intel VTune Amplifier 2018 and Vampir 9.2.
>> 
>> So far i did rebuild HPX with -DHPX_WITH_APEX=ON and -
>> DCMAKE_BUILD_TYPE="RelWithDebInfo".
>> I couldn't find a cmake or cmd line flag in the documentation how to
>> enable OTF file creation. How is that done?
> 
> I'm cc'ing Kevin on this reply for him to answer the APEX question.
> 
>> @Hartmut: Do i need to do something extra to use VTune? A simple hotspot
>> analysis looks promising, but is only showing me intern hpx function calls
>> without any reference to my own code.
> 
> You can either use APEX or VTune, not both at the same time. In order to 
> integrate HPX with VTune you need to specify -DHPX_WITH_ITT_NOTIFY=On and 
> -DAMPLIFIER_ROOT= to cmake at configuration time. 
> Please make sure that no APEX is enabled (-DHPX_WITH_APEX=Off) in this case.
> 
> HTH
> Regards Hartmut
> ---
> http://boost-spirit.com
> http://stellar.cct.lsu.edu
> 
> 
>> 
>> Best regards
>> Tobias Gauweiler
>> 
>> On 1 September 2017 at 15:53, Hartmut Kaiser 
>> wrote:
>> 
>>> If you are interested in seeing tasks like this
>>> 
>>> https://pasteboard.co/GzF4jDa.png
>>> 
>>> Then you should try compiling HPX with APEX enabled (and also enable
>> OTF)
>>> and then you can use a tool like vampir (not free but they have a trial
>>> version) or some others I can’t remember the names of (wxparaver?) that
>>> can display OTF2 trace files. One that I’ve never tried but keep meaning
>>> to is http://vite.gforge.inria.fr/
>> 
>> An alternative option would be to use Intel Amplifier (former Intel VTune)
>> for which we have an integration with HPX as well. Let me know if you
>> would like to try that for more information.
>> 
>> Regards Hartmut
>> ---
>> http://boost-spirit.com
>> http://stellar.cct.lsu.edu
>> 
>> 
>>> 
>>> JB
>>> 
>>> 
>>> 
>>> 
>>> 
>>> From: hpx-users-boun...@stellar.cct.lsu.edu [mailto:hpx-users-
>>> boun...@stellar.cct.lsu.edu] On Behalf Of Tobias Gauweiler
>>> Sent: 01 September 2017 13:42
>>> To: hpx-users@stellar.cct.lsu.edu
>>> Subject: [hpx-users] Questions about benchmarking hpx tasks
>>> 
>>> Hello,
>>> 
>>> i want to benchmark my hpx application and i'm not sure what's the best
>>> way to do this.
>>> 
>>> My goal is to create a gantt chart with the x axis for the time and y
>> axis
>>> for the hpx worker thread ids
>>> and then adding boxes for each task to their corresponding hpx worker id
>>> with the task computation time as length in x direction.
>>> 
>>> The application runs on only one locality.
>>> 
>>> Questions:
>>> 
>>> 1.) If a task got suspended and then resumed is the hpx worker id still
>>> the same? If not is there a unique identifier for tasks that i can use
>>> instead?
>>> 
>>> 2.) How to measure the computation time of each task? Should i write my
>>> own performance counter or  save the start and end time per task
>> manually?
>>> 
>>> 
>>> Best regards
>>> Tobias Gauweiler
>> 
>> ___
>> hpx-users mailing list
>> hpx-users@stellar.cct.lsu.edu
>> https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
> 
> 

--
Kevin Huck, PhD
Research Associate / Computer Scientist
Performance Research Lab
University of Oregon
kh...@cs.uoregon.edu <mailto:kh...@cs.uoregon.edu>
http://tau.uoregon.edu <http://tau.uoregon.edu/>





___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] HPX and APEX

2016-12-05 Thread Kevin Huck
Xavi -

I just realized I didn’t answer your first question - no, you can’t use a 
stand-alone version of APEX.  For use with Ste||ar HPX, APEX has to be 
configured/built as part of the HPX configure/build process.

Thanks -
Kevin

> On Dec 5, 2016, at 7:31 AM, Hartmut Kaiser  wrote:
> 
> This is something for Kevin to answer. I cc’ed him on this response. <>
>  
> Thanks!
> Regards Hartmut
> ---
> http://boost-spirit.com <http://boost-spirit.com/>
> http://stellar.cct.lsu.edu <http://stellar.cct.lsu.edu/>
>  
> From: hpx-users-boun...@stellar.cct.lsu.edu 
> <mailto:hpx-users-boun...@stellar.cct.lsu.edu> 
> [mailto:hpx-users-boun...@stellar.cct.lsu.edu 
> <mailto:hpx-users-boun...@stellar.cct.lsu.edu>] On Behalf Of Xavi Aguilar
> Sent: Sunday, December 4, 2016 2:44 PM
> To: hpx-users@stellar.cct.lsu.edu <mailto:hpx-users@stellar.cct.lsu.edu>
> Subject: [hpx-users] HPX and APEX
>  
> Hi,
>  
> is it possible to install HPX with an already installed version of APEX? I've 
> been looking at the cmake files and the documentation but I cannot find it 
> anywhere. I think I saw in the past that there were some variables like 
> APEX_ROOT in the cmake but I think they're gone now, aren't they?
>  
> I'm asking because I would like to use APEX with different features such as 
> PAPI support but I'm not able to configure them through the standard HPX+APEX 
> installation.
>  
> Thanks in advance for your help.
>  
> Best Regards,
> Xavier

--
Kevin Huck
Performance Research Lab
University of Oregon
kh...@cs.uoregon.edu <mailto:kh...@cs.uoregon.edu>
http://tau.uoregon.edu <http://tau.uoregon.edu/>



___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users


Re: [hpx-users] HPX and APEX

2016-12-05 Thread Kevin Huck
Xavi -

Yes, set:
-DAPEX_WITH_PAPI=TRUE
-DPAPI_ROOT=/path/to/papi

If that doesn’t work, let me know.

The PAPI measurements won’t show up in an OTF trace, but they will be in a 
final report if you set the environment variable APEX_SCREEN_OUTPUT=1 before 
running the program.

The PAPI support is not as robust as I would like it, but isn’t that always the 
case? :)

Thanks -
Kevin

> On Dec 5, 2016, at 7:31 AM, Hartmut Kaiser  wrote:
> 
> This is something for Kevin to answer. I cc’ed him on this response. <>
>  
> Thanks!
> Regards Hartmut
> ---
> http://boost-spirit.com <http://boost-spirit.com/>
> http://stellar.cct.lsu.edu <http://stellar.cct.lsu.edu/>
>  
> From: hpx-users-boun...@stellar.cct.lsu.edu 
> <mailto:hpx-users-boun...@stellar.cct.lsu.edu> 
> [mailto:hpx-users-boun...@stellar.cct.lsu.edu 
> <mailto:hpx-users-boun...@stellar.cct.lsu.edu>] On Behalf Of Xavi Aguilar
> Sent: Sunday, December 4, 2016 2:44 PM
> To: hpx-users@stellar.cct.lsu.edu <mailto:hpx-users@stellar.cct.lsu.edu>
> Subject: [hpx-users] HPX and APEX
>  
> Hi,
>  
> is it possible to install HPX with an already installed version of APEX? I've 
> been looking at the cmake files and the documentation but I cannot find it 
> anywhere. I think I saw in the past that there were some variables like 
> APEX_ROOT in the cmake but I think they're gone now, aren't they?
>  
> I'm asking because I would like to use APEX with different features such as 
> PAPI support but I'm not able to configure them through the standard HPX+APEX 
> installation.
>  
> Thanks in advance for your help.
>  
> Best Regards,
> Xavier

--
Kevin Huck
Performance Research Lab
University of Oregon
kh...@cs.uoregon.edu <mailto:kh...@cs.uoregon.edu>
http://tau.uoregon.edu <http://tau.uoregon.edu/>



___
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users