Denis Barthou 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce
..
res 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce
README 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce
makefile 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce
mult.c 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce
mult.jl 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce
mult.plot 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce
mult_native.jl 73fc4e1dc7 Changes for julia1.3+ 5 yıl önce

README

You first need to compile StarPU.jl
Now, type
> make
> make test
> gnuplot mult.plot

During the test, several versions are compared:
- mult.c: this is the original C+starpu code
- mult_native.jl: this is the native julia way of multiplying 2 matrices. There is a call to openBLAS
- mult_generatedc.jl: generates a C file, genc_matrix_mult.c. This file is compiled into a library, that is loaded and a function is executed.
- mult_calllib.jl: the env variable JULIA_TASK_LIB should point to a library containing the function matrix_mult. This function is called.

Examples of how to launch mult.jl are given in test rules.

A CUDA version is generated too. Untested so far (no nvidia gpu on my laptop!)