As I understand it, it is only the Julia runtime and dependencies that are 
compile with gcc or Intel compilers. Regardless of which ones you use the 
compile Julia itself, the Julia code you yourself write will be compiled by 
the Julia runtime using LLVM. The only time when in Julia code you might 
see a performance difference from gcc vs Intel compilers is when your Julia 
code calls some function which calls out to some C/Fortran dependency. Your 
code snippet here is pretty much just loops and arithmetic so it doesn't 
call out to any C/Fortran code so the gcc vs Intel compilers should not 
make any difference.

On Wednesday, April 29, 2015 at 11:43:04 AM UTC+3, Ángel de Vicente wrote:
>
> Hi,
>
> On Wednesday, April 29, 2015 at 4:38:04 AM UTC+1, Michael Prentiss wrote:
>>
>> I implemented an program in Fortran and Julia for time comparison when 
>> learning the language.  
>> This was very helpful to find problems in how I was learning julia. 
>>  Maybe I did not read carefully enough,
>> but I would compile the fortran with the intel compilers (not MKL) 
>> instead of gcc as another means for 
>> comparing speed. The intel compilers tend to make faster executables.
>>
>>
> indeed. We regularly use the Intel compilers for our projects in Fortran, 
> but for the moment I wanted to compare with gfortran for a fair comparison 
> against Julia (since Julia was compiled with gcc) 
>
> I was hoping to later compile Julia with the Intel compilers and then 
> compare with the executable created with the Intel Fortran compiler, but I 
> had problems compiling Julia with the Intel compilers, and besides 
> apparently Julia will not get a big performance boost in any case. (And for 
> this toy program Intel doesn't seem to be able to get any performance boost 
> over gfortran).
>
> Cheers,
> Ángel
>

Reply via email to