Dear List,

     When I try to do something like  x10c++ -report postcompile=1 -o MVmult
MVmult.x10 -post ' icc  -c -o testblas.o $MKL_INC testblas.c'
but when I check the compilation command, i get to know that what I'm doing
is wrong:


Executing post-compiler icc -c -o testblas.o $MKL_INC testblas.c -g
-I/home/cluster/t1221/lu26xut/x10-2.0.4_linux_x86_src/x10.dist/include
-I/home/cluster/t1221/lu26xut/myWorkSpace/myMVmult -I. -Wno-long-long
-Wno-unused-parameter -pthread -msse2 -mfpmath=sse -o
/home/cluster/t1221/lu26xut/myWorkSpace/myMVmult/MVmult subTask.cc
testblas.c MVmult.cc
-L/home/cluster/t1221/lu26xut/x10-2.0.4_linux_x86_src/x10.dist/lib -lx10
-DX10_USE_BDWGC -lgc -lx10rt_pgas_sockets -lpthread -ldl -lm -lpthread
-Wl,--rpath
-Wl,/home/cluster/t1221/lu26xut/x10-2.0.4_linux_x86_src/x10.dist/lib
-Wl,-export-dynamic -lrt


where testblas.c is a C file which calls some BLAS routines, and MVmult is a
class that calls class subTask, where class subTask calls the
Native functions from testblas.c

I really don't know how to do this, because testblas can only be compiled by
the "icc" compiler, where as the MVmult and subTask classes
can be compiled through g++ (GCC)

is there any way around this? I'd appreciate any suggestion

Thank you all.

On Tue, Jul 27, 2010 at 7:02 AM, mohammed elsaeedy <
mohammed.elsae...@kaust.edu.sa> wrote:

> 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 ???
>
>
> --
> Thank you for your concern.
> Regards,
> Mohammed El Sayed
>



-- 
Thank you for your concern.
Regards,
Mohammed El Sayed
------------------------------------------------------------------------------
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