Hi Dave,

> Thanks, Yoshi.  Do you recall the build instruction (the ant command you 
> used) for the MIC version?  

Sure.  Please keep in mind that my build was NOT built with BDWGC and MPI 
enabled.  
The instructions are very simple: 

1. Add environmental variables to x10.runtime/Make.rules
ifdef ENABLE_CROSS_COMPILE_MIC
export CC = icc -mmic
export CXX = icc -mmic
export CFLAGS = -mmic
export CXX_FLAGS = -mmic
export LDFLAGS = -Wl,--rpath 
-Wl,/opt/intel/composer_xe_2013.1.117/compiler/lib/mic
export X10_STATIC_LIB=1
endif

2. Run ant script
% cd x10.dist
% ant squeakyclean dist -DCROSS_COMPILE_MIC=true -DDISABLE_GC=true |& tee 
ant-dist-`date '+%Y%m%d%H%M%S'`.log

3. If successfully done, then build/run a sample
% cd samples
% ../bin/x10c++ HelloWholeWorld.x10  -o HelloWholeWorld

% file HelloWholeWorld
HelloWholeWorld: ELF 64-bit LSB executable, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.4.0, not stripped
% ./HelloWholeWorld
-bash: ./HelloWholeWorld: cannot execute binary file

% micnativeloadex HelloWholeWorld -v -d 0 -e "X10_NPLACES=10"
Hello World from place 1
Hello World from place 2
Hello World from place 3
Hello World from place 4
Hello World from place 5
Hello World from place 6
Hello World from place 7
Hello World from place 9
Hello World from place 8
Hello World from place 0
Remote process returned: 0
Exit reason: SHUTDOWN OK

Feel free to ask me if further information required.

Thanks,
--yoshiki


On 2013/04/26, at 20:43, Dr. David E Hudak wrote:

> Thanks, Yoshi.  Do you recall the build instruction (the ant command you 
> used) for the MIC version?  
> 
> Thanks,
> Dave
> On Apr 26, 2013, at 6:51 AM, Yoshiki SATO <yosh...@ci.i.u-tokyo.ac.jp>
>  wrote:
> 
>> Hi, 
>> 
>> I did.  It can compile X10 code into the MIC in our environment.
>> 
>> Thanks,
>> --yoshiki
>> 
>> On 2013/04/24, at 23:32, Dr. David E Hudak <dhu...@osc.edu> wrote:
>> 
>>> Hi All,
>>> 
>>> I plan to build X10 to run native executables on the Xeon Phi.  Before 
>>> getting started, I wanted to ask whether anyone has already started down 
>>> this path.
>>> 
>>> Thanks,
>>> Dave
>>> ---
>>> David E. Hudak, Ph.D.          dhu...@osc.edu
>>> Senior Research Scientist
>>> Ohio Supercomputer Center
>>> http://www.osc.edu/~dhudak
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Try New Relic Now & We'll Send You this Cool Shirt
>>> New Relic is the only SaaS-based application performance monitoring service 
>>> that delivers powerful full stack analytics. Optimize and monitor your
>>> browser, app, & servers with just a few lines of code. Try New Relic
>>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
>>> _______________________________________________
>>> X10-users mailing list
>>> X10-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/x10-users
>> 
>> --
>> Yoshiki SATO | Project Assistant Professor
>> yosh...@ci.i.u-tokyo.ac.jp | +81-90-6156-5835
>> 
>> Grad. School of Information Science and Technology,
>> The University of Tokyo.
>> 7-3-1 Hongo Bunkyo-ku, Tokyo 113-8656 Japan
>> 
>> 
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring service 
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt! 
>> http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________
>> X10-users mailing list
>> X10-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/x10-users
> 
> ---
> David E. Hudak, Ph.D.          dhu...@osc.edu
> Senior Research Scientist
> Ohio Supercomputer Center
> http://www.osc.edu
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service 
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! 
> http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to