On Mon, Nov 19, 2012 at 4:27 PM, Seyed <[email protected]> wrote:

> Hi all,
>
> I want to add/change some codes in parsec_bench_begin function.
> I am using parsecROI.img disk image and I have some questions:
>
> 1. Which file should I modify? Is it
> parsec-2.1/pkgs/libs/hooks/src/hooks.c?
>
Yes.


> 2. What should I do after modifying this file? How can I rebuild
> benchmarks and
> hooks?
>
Hooks are compiled as library so you just have to rebuild the hooks library
and make sure its used at runtime.


> 3. If I would like to disable setting CPU affinity in hooks, what exactly
> should
> I do?
>
If 'PARSEC_CPU_NUM' environment variable is not set then affinity is not
set. By disabling cpu affinity you might run into issues with high
run-by-run variations.

4. How parsec_thread_begin function is called? I do export PARSEC_CPU_NUM=1
> (I'm
> actually using ooo_2_th) and launch parsecmgmt with -n 1; however, I get
> this in
> my log file: [HOOKS] Using 0 CPU for Thread 0 [HOOKS] Using 0 CPU for
> Thread 1!
>
> Because you specified PARSEC_CPU_NUM to 1 it will only use CPU 0 for all
the threads.

- Avadh

>
> Thank you for your time.
>
> Best,
> Seyed
>
>
> _______________________________________________
> http://www.marss86.org
> Marss86-Devel mailing list
> [email protected]
> https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
>
_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to