Developers

RANDOM_NUMBER, RANDOM_SEED dependencies?

I am observing some unexpected behavior  from RANDOM_NUMBER.   I am getting differences between sequences generated by RANDOM_NUMBER after using RANDOM_SEED to set the seed.   I am writing to see if anyone can confirm or deny that Intel RANDOM_NUMBER sequences only depend upon calls to either RANDOM_NUMBER or RANDOM_SEED, and there is no dependency,  either on other Fortran routines or C/C++/C# libraries?

Regards,

Scott

Passing an allocated array

I have an array that is defined to be ALLOCATABLE (defined in my main program).  A subroutine is call and that is where it will be allocated.  So the dummy argument of the subroutine also needs to be ALLOCATABLE.  For this work correctly, the subroutine needs an explicit interface and I have that in a module.

After that, the array will need to be passed into other subroutines.  These subroutines will never be messing around with allocation -- simply using the contents of the array.

Visual Studio 2012 express edition and INDE unresolved LNK2019

  1. Hi all,

    I've installed Visual Studio 2012 express edition under Windows7 64-bit and installed Intel INDE Starter edition with code_builder_5.1.0.25.
    Next I opened a Visual Studio x64 command prompt, which points initially to "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC", changed
    directory to "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC" and ran VCVARSALL.BAT. Without this it would not find <iostream> etc.

Intel xeon phi ubuntu

Is there any way to make this card work on some publkick distributions like ubuntu or debian? 

I am a bioinformatic scientist, i dont know that much about programming, and each guides i found on the web failed. 

Is there any (easy) way to make this card work on the latest ubuntu LTS? 

The file size is twice bigger when writing real8 into binary file.

Hi,

I am a newbie to Fortran language. I try to write a real8 array into binary file using code as follow (compiler: Intel Fortran 2015)

open(unit=219, status='replace',file='data.bin',form='unformatted')
do j=1,ny2dval
do i=1,nx2dval
   write(219) fzavg(i,j)
end do
end do

 

But the file size is twice bigger than expected. It seems to write a real16 array. Why does it happen? Any suggestions?

 

Thanks a lot!

Regards

ZHAO Peng

Coding in your browser: Using the Codebox* IDE with your Intel® Edison

There are multiple ways to write code for the Intel® Edison (Arduino* IDE, vi, emacs, SFTP, Intel® XDK, etc.), here's how you can do it from your browser!

Codebox* is an open source web-based IDE that you can install on your Intel® Edison. Once it's set up, you can simply point to the Intel® Edison's IP address and code away! Here's how:

Subscribe to Developers