Polina Dudnik wrote:
> Hi,
>
> I would like to test atomics in ruby.
>
> The regression tester contains a test_atomic binary in 
> /gem5/regression/test-progs/m5threads/bin/sparc/linux.
>
> I try to run the tester by issuing:
>
> build/SPARC_SE/m5.fast -d 
> build/SPARC_SE/tests/fast/quick/40.m5threads-test-atomic/sparc/linux/simple-atomic-mp-ruby
>  
> -re tests/run.py 
> build/SPARC_SE/tests/fast/quick/40.m5threads-test-atomic/sparc/linux/simple-atomic-mp-ruby
>  
> The tester reports success, but I don't think it ever calls ruby.
>

I haven't used the new Ruby code, but I guess you output the ruby stats 
somewhere. By looking at them, you should be able to determine if Ruby 
is being used or not. You can also turn ruby debug and trace a few 
memory accesses.

> I tried to compile the test_atomic for alpha. I have the 
> cross-compiler but I don't have any libraries. The make file in 
> /gem5/regression/test-progs/m5threads/src points to ../pthread.c and 
> ../pthread_defs.h ../tls_defs.h. However, I don't have any of those 
> files. Where are they? Do I need any alpha libraries to compile 
> test_atomic binary?
>

test_atomic (and any other multithreaded program in SE) uses m5threads. 
As we discussed a while back, the newer m5threads will not compile for 
Alpha because I didn't implement TLS there (the TLS ABI is quite 
different from the SPARC and x86 ones). I recommend that you compile 
multithreaded programs for SPARC unless you require Alpha for some 
specific reason.

Regards,

Daniel
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to