mohammed elsaeedy <mohammed.elsae...@kaust.edu.sa> wrote on 07/27/2010 
07:02:48 AM:

> Dear list,
> 
>     I've been able to integrate native code into my X10 programs, and I 
was
> able to compile it too; I was calling some
> BLAS routines, and I used the following command to compile : *"x10c++ -o
> Hello Hello.x10 -post '# # -I /usr/local/blas # -L /usr/local/blas 
-lblas
> -lm'"*
> and it works just fine on my laptop, but then I want to compile/run my
> application over a linux cluster, so what I have over there is an MKL
> library module, rather than BLAS
> which can compile BLAS routines efficiently over intel processors, so to
> compile a program using MKL you write the following:
> 
> *icc -c -o testblas.o $MKL_INC testblas.c   (produce the binary file .o)
> icc -parallel -o myprog.exe testblas.o $MKL_SHLIB  (dynamic linking and
> produce the executable)
> *
> how can I incorporate this into the post compiling part of the x10c++
> command ???

Mohammed,

At the moment, the C++ code generated by X10 can only be compiled with
g++ or xlC.  If your MKL_SHLIB exposes a C API ('extern "C"' in C++),
then you should be able to use g++ to link to that library instead of
icc.
        Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" -- 
Confucius


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to