Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all 5691 articles
Browse latest View live

Forum "Spam" emails

$
0
0

From this afternoon I am getting email change notifications for any thread I started on here going way back. I am guessing some forum admin is going on and the threads are thus marked as changed and as a result so I get notification emails. Is is happening to others as well? Quite irritating.


Forum Activity E-Mails

$
0
0

Today I have been receiving several e-mails telling me that there has been activity on forum topics that I started over the past few months. When I checked nothing has been added. Is there a problem with the automatic e-mail notification process?

Problems with execute_command_line

$
0
0

I am having some problems with execute_command_line

My program launches in a folder in  which I don't specify. I need to move around this root folder creating new sub-folders and moving between them and the root folder.

The variable 'root_folder' has the full path name for the root folder.If I am in a sub-folder of the root folder and use the Fortran code: 

 integer status
 status = changedirqq(trim(root_folder))

It works and I move back to the root folder. However, if I use

  command = 'chdir ..'
  call execute_command_line(trim(command), exitstat=estat, cmdstat=cstat)

then estat and cmdstat are returned as zero but I do not move back to the root folder.

If I use the Command Prompt window, I can move around the the folders with standard Windows commands without any problems.

I am using the latest beta compiler.

Port CVF project into IVF, errors with DFOR.lib

$
0
0

Hi all,

I recently started working on a project that was build roughly 15 years ago. It uses a Visual C++ and visual fortran compiled in CVF. Currently, the fortran stands as a static library and there is a separate C++ project that is dependent on the library. I am on Windows 10, using Visual studio 2013 professional, and using Intel Visual Fortran 2017. 

The issue is that there are references to DFOR.lib in the project properties in the linker command line (/defaultlib:"dfor.lib"), but it gives the error dfor.lib cannot be opened and when removed, there are a series of unresolved external symbols. 

Error   6   error LNK2001: unresolved external symbol "public: class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > __thiscall petMove::toString(void)" (?toString@petMove@@QAE?AV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ) C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\Power Network CaptureView.obj    Power Network Capture
Error   23  error LNK2019: unresolved external symbol "protected: __thiscall CZoomView::CZoomView(void)" (??0CZoomView@@IAE@XZ) referenced in function "protected: __thiscall CPowerNetworkCaptureView::CPowerNetworkCaptureView(void)" (??0CPowerNetworkCaptureView@@IAE@XZ)   C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\Power Network CaptureView.obj    Power Network Capture
Error   24  error LNK2019: unresolved external symbol "protected: virtual __thiscall CZoomView::~CZoomView(void)" (??1CZoomView@@MAE@XZ) referenced in function "public: virtual __thiscall CPowerNetworkCaptureView::~CPowerNetworkCaptureView(void)" (??1CPowerNetworkCaptureView@@UAE@XZ)    C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\Power Network CaptureView.obj    Power Network Capture
Error   7   error LNK2019: unresolved external symbol "public: __thiscall CDialogCurrentPhasor::CDialogCurrentPhasor(class CWnd *)" (??0CDialogCurrentPhasor@@QAE@PAVCWnd@@@Z) referenced in function "public: void __thiscall CCurrentPhasor::SEDialogHandler(void)" (?SEDialogHandler@CCurrentPhasor@@QAEXXZ) C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\Power Network CaptureDoc.obj Power Network Capture
Error   5   error LNK2019: unresolved external symbol "public: class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > __thiscall petMove::toString(void)" (?toString@petMove@@QAE?AV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ) referenced in function "public: int __thiscall CPowerNetworkCaptureDoc::PushMove(class petMove *)" (?PushMove@CPowerNetworkCaptureDoc@@QAEHPAVpetMove@@@Z)  C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\Power Network CaptureDoc.obj Power Network Capture
Error   22  error LNK2019: unresolved external symbol "public: unsigned int __thiscall petMove::getPartType(void)" (?getPartType@petMove@@QAEIXZ) referenced in function "protected: void __thiscall CPowerNetworkCaptureView::OnChar(unsigned int,unsigned int,unsigned int)" (?OnChar@CPowerNetworkCaptureView@@IAEXIII@Z)    C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\Power Network CaptureView.obj    Power Network Capture
Error   14  error LNK2019: unresolved external symbol "public: virtual __thiscall CDialogRunAnalysisFromFilePF::~CDialogRunAnalysisFromFilePF(void)" (??1CDialogRunAnalysisFromFilePF@@UAE@XZ) referenced in function "protected: void __thiscall CPowerNetworkCaptureDoc::OnAnalysisRunFromFilePF(void)" (?OnAnalysisRunFromFilePF@CPowerNetworkCaptureDoc@@IAEXXZ)    C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\Power Network CaptureDoc.obj Power Network Capture
Error   3   error LNK2019: unresolved external symbol _HtmlHelpW@16 referenced in function "protected: void __thiscall CMainFrame::OnHtmlHelp(void)" (?OnHtmlHelp@CMainFrame@@IAEXXZ)   C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Pet_Gavin\pet_neda\MainFrm.obj  Power Network Capture

I have tried to rebuild the project and the fortran library compiles without any errors but the C++ does not. I am new to working with Visual Studio and linking libraries so I do not know if this is an issue with a missing library that has replaced DFOR.lib or if the project should generate the links automatically. I also noticed that for my fortran static library Configuration Properties< Fortran < External Procedures < Calling Convention was set to CVF (/iface:cvf). I tried setting this to default but I saw no immediate results. 

Also I have tried to rebuild the project from the source code but I am inexperienced with that and the project is quite large. One issue I am having is that the fortran files are now compiling with errors when they did not previously. 

Error	2	 error #6633: The type of the actual argument differs from the type of the dummy argument.   [WS]	C:\Users\Gavin\Desktop\College stuff\1st year (Fresher)\Ali Abur Code\pet_neda\fortranfiles\optimpl\IPENUM.f	295	

How can I port over the project to IVF and replace all of the references and ties to Compaq Visual Fortran? Or how can I solve these unresolved external symbol errors? Are there any similar libraries I can use to resolve some of the externals?

Thank you for the help in advance,

Gavin 

Cannot open vfproj file in visual studio 2017

$
0
0

I have VS 2017 15.7.1

I've tried all the things I can find but I cannot open a vfproj file that I created in February 2018 now in May 2018. I was running the 30-day trial in February and then it expired. Afterward I uninstalled all intel products. Then later on I acquired a license for this software and reinstalled it, Update 2. I see in the Help menu of Visual Studio "Intel Compilers and Libraries" and "Intel Software Manager", but in the list of installed products, Fortran does not appear, or anything Intel. When I create a new project, Fortran does not appear (it did before, with the 30 day trial). I uninstalled and reinstalled VF compiler and even installed the most recent update 3. No avail. This was an expensive license and I need it ASAP. What gives?

OT: Odd occurrence

$
0
0

I just received a strange email related to this forum, purporting to be from Intel.  Supposedly it comes from idz.admin@intel.com, and it begins:

Greetings Gib B.,

Update for Forum topic: OpenMP problem
My Fortran program is built as a DLL, and it calls a C function that is also built as a DLL. ...

It quotes a forum post from 2014, with a link to that thread:

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-fo...

I do not use the ID 'Gib B.', and I don't remember this exchange, but my memory being what it is, it's possible that it was me (the compiler version info matches).  I wonder if anybody else has seen one of these.

Gib

Visual Studio macerating /Fd compiler option?

$
0
0

Dear All

I am using Visual Studio Enterprise 2017 v15.5.4 with Intel(R) Visual Fortran Compiler 17.0.7.272 [Intel(R) 64]

And debugging is not working - not stopping at break points, and when the first fatal error is encountered I am not getting a line number.

I currently compile with the following, as copied from the VS project|properties|command line

/nologo /debug:full /Od /fpp /recursive /standard-semantics /Qdiag-error-limit:50 /stand:f15 /warn:declarations /warn:unused /warn:ignore_loc /warn:truncated_source /warn:interfaces /module:"x64\Debug\\" /object:"x64\Debug\\" /Fd"x64\Debug\vc150.pdb" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c

I checked each of these against the documentation and noticed:

1) The documentation says /Fd[:filename] but there is no : between the /Fd and the filename on the command line shown above.

2) There is no file x64\Debug\vc150.pdb (so I guess this is why I get no line numbers?), and,

3) I am not sure which option or options in VS generate this option on the command line but when I try to add the "correct" version in the additional options box, I get shouted at along the lines of:

ifort: command line warning #10122: overriding '/Fdx64\Debug\vc150.pdb' with '/Fdx64\Debug\vc150.pdb'

So what do I do next? Is the /Fd thing a bug or irrelevant? How do I get the debugger back working?

Thanks

Norman

How to hide horizontal scroll bar in list box when it isn't necessary?

$
0
0

I have a quickwin application, in which there is a list box. I've added to the list box a horizontal scroll bar in the following way. I've included in the DoCallBackInit subroutine sending the following message to the list box                    

        retint=SendDlgItemMessage(dlg%hwnd, IDC_LIST_Who, LB_SETHORIZONTALEXTENT, ilenSTR, 0)

ilenSTR is maximal text length in pixels.

When the dialog is updated using dialog controls, the text length is changed. It is possible that in some cases the horizontal scroll bar isn't necessary. But it doesn't disappear.
How to hide the horizontal scroll bar in these cases?


Error message severe (172): Program Exception - exception code = 0x7e (126)

$
0
0

Hi Everyone,

I'm very new to use Fortran to run an existing model. After compiling it, it generates the following error message. Can someone help me solve this issue? Is it related to Windows 10 system? I ran the model in Windows 7 before. It didn't generate the message.

Thanks

forrtl: severe (172): Program Exception - exception code = 0x7e (126)

Image              PC                Routine            Line        Source

KERNELBASE.dll     00007FFD7740F218  Unknown               Unknown  Unknown

nems2.exe          00007FF62D5AB199  Unknown               Unknown  Unknown

nems2.exe          00007FF62D5AAF59  Unknown               Unknown  Unknown

nems2.exe          00007FF62C8EF99E  WRITE_TO_AIMMS           8984  main.f

nems2.exe          00007FF62C8EDAA1  AIMMS_COAL               8761  main.f

nems2.exe          00007FF62C89A3DC  NEXEC                    1328  main.f

nems2.exe          00007FF62C894564  NSOLVE                    714  main.f

nems2.exe          00007FF62C8903B5  MAIN__                    238  main.f

nems2.exe          00007FF62D66CE0C  Unknown               Unknown  Unknown

nems2.exe          00007FF62D651C03  Unknown               Unknown  Unknown

KERNEL32.DLL       00007FFD79BA3034  Unknown               Unknown  Unknown

ntdll.dll          00007FFD7A661551  Unknown               Unknown  Unknown

Error when opening command prompt with Intel compiler

$
0
0

After installing IPS XE 2019 Beta, I am experiencing a problem with IPS XE 2017 Update 2 when running "Intel 64 Visual Studio 2015 environment". I get error "The application was unable to start correctly (0xc0000005). Click OK to close the application." in a window titled "fi_info.exe - Application Error". The corresponding command prompt window I am opening is titled "Intel(R) MPI Library 2019 Pre-Release (Beta) for Windows* Target Build Environment for Intel(R) 64 applications" and the same text is also in the command prompt window. After I click OK, the command prompt window contains following:

Intel(R) MPI Library 2019 Pre-Release (Beta) for Windows* Target Build Environment for Intel(R) 64 applications
Copyright 2007-2018 Intel Corporation.

Intel(R) MPI Library 2017 Update 2 for Windows* Target Build Environment for Intel(R) 64 applications
Copyright (C) 2007-2017 Intel Corporation. All rights reserved.

Copyright (C) 1985-2017 Intel Corporation. All rights reserved.
Intel(R) Compiler 17.0 Update 2 (package 187)

Why would MPI 2019 be used in IPS XE 2017?

The same happens when I try running "Intel 64 Visual Studio 2015 environment" in IPS XE 2019 Beta instead of in IPS XE 2017 Update 2.

Can I ignore the problem? I am not using MPI in my applications.

Does Visual Studio 2015 Blend, and Fortran XE 2013 SP1 to work together

$
0
0

Fortran Problems:

I have been using Fortran XE 2013 SP1 and VS 2008 as my debugger for a few years now.  I now just got through upgrading from VS2008 to VS 2015 Blend Professional Version. I took off VS2008 before I installed 2015 Blend Professional version. I then reloaded the Fortran XE 2013 SP1. I also have the Intel Parallel Studio loaded.

So right now my VS 2015 is not giving me an option to create an Project in Fortran, ONLY in Visual C. What do I need to do, to use the 2015 Visual Studio Blend with the Intel Fortran XE 2013 SP1 Compiler ??

Thank you,

  Rick Wojo.

Refactoring code based on coverage

$
0
0

I have inherited a large, messy Fortran code developed at different stages in time by different people. The code is poorly documented and many of the individuals responsible for development are not available (i.e they do not work at the company anymore).

One application I would like to achieve is to refactor the code based on coverage for a particular test. Each individual test covers only 10-20 percent of the code at any given time. If I'm fixing one test at a time it is truly overkill to have to go through the entire code. I need a reduced version of the same code which is guaranteed to run that particular test, but which doesn't contain all the extra crap I don't need. This would enable fast and efficient determination of how the parameters influence one another. It would save an enormous amount of time because I would know for sure that everything I'm looking at in this reduced version of the code is relevant.

I have tried many things, such as:

  • writing python codes to read the Intel generated HTML coverage files and sort the contents by coverage
  • Looked into automatic refactoring tools. There are a lot of publications regarding this, but nothing of any practical value. The closest thing I have seen is https://github.com/Yelp/undebt. But I think this package is a long shot. A steep learning curve, but not too sure whether it would help.
  • Learned to use regex to better target search queries in Find and Replace
  • Looked into f2py python package, but it turns out this is really more of a tool to call fortran routines from python. Not designed for static analysis or similar other applications.

So far I have been refactoring the code manually using the test of interest, a coverage analysis result and tracking changes using a local svn repository so I don't get lost. This takes an unrealistic amount of time for each test. I realize this is a highly specific problem case but at the same time I know many legacy fortran codes are just as huge, and possibly encounter the same problems. Am I doomed to having to custom-develop something for this use-case or are there efficient tools out there that can alleviate my misery?

new install of XE 2017 update 2 under VS2015 fails

$
0
0

recently got a new computer at work and had intel compiler installed into VS2015.  All went well (no errors thrown) but when I try to compile I get:

ifort: error #10408: The Intel(R) 64 target compiler cannot be found in the expected location. Please check your installation or documentation for more information.

ifort: error #10036: unable to run 'C:\PROGRA~2\INTELS~1\COMPIL~1.187\windows\bin\intel64\ifort.exe'

I've noticed that in the installation folder:  'C:\PROGRA~2\INTELS~1\COMPIL~1.187\windows\bin\intel64 DOes not contain any .exe files - BUT they can be found in:  'C:\PROGRA~2\INTELS~1\COMPIL~1.187\windows\bin\intel64_ia32

in Vs2015 I tried updating the pointers in  Tools->options->Cisual Fortran->compilers-> executables.  But this made no difference.

 

Any Ideas ?

Migration from (vs 2008+Intel11.1) to (vs 2017+Parallel Studio 18)

$
0
0

I migrated a code from (vs 2008+Intel11.1) to (vs 2017+Parallel Studio 18). But I don't obtain the same result after calculations, the new result is wrong. The code contains .f90 files and also .f files. Do I need to change something in .f files ? Are there any changes to be made after this migration? Thank you !

Visual Fortran Composer 2013 XE SP1 and VS2015

$
0
0

I was using this same Visual Fortran(stated in title) under Windows7 and Visual Studio 2008.

I just recently had to upgrade to Windows10 and Visual Studio 2015. As stated I have the Intel compiler XE 2013 as well as the Parallel Studio.

Will Visual Studio 2015 work with this 2013 Visual Fortran ??? I cannot get the VS2015 to see the Fortran as a template like in my VS2008 version.

Anything I can do ??


Selecting which intel compiler to use based on current project

$
0
0

I have several projects which I am working on and both Intel Fortran 2013 and Intel Fortran 2016 installed. The one project uses Fortran 2013 while the other uses Fortran 2016. I do not wish to update the first project to be compatible with Fortran 2016 because the other contributors to this project are all using 2013. I still need 2016 though for the second project.

How do I control which Fortran version is compiling my code from within Visual Studio? Is this possible or easy to do? Thanks.

Redirected to Chinese version of Intel support site

OT: Odd occurrence

$
0
0

I just received a strange email related to this forum, purporting to be from Intel.  Supposedly it comes from idz.admin@intel.com, and it begins:

Greetings Gib B.,

Update for Forum topic: OpenMP problem
My Fortran program is built as a DLL, and it calls a C function that is also built as a DLL. ...

It quotes a forum post from 2014, with a link to that thread:

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-fo...

I do not use the ID 'Gib B.', and I don't remember this exchange, but my memory being what it is, it's possible that it was me (the compiler version info matches).  I wonder if anybody else has seen one of these.

Gib

Error: The operation could not be completed

$
0
0

I am using IPS XE 2016 Update 4 with VS 2010 Pro SP1 and I am getting the error "Error: The operation could not be completed" when I am trying to rebuild the (only) project in the solution or the whole solution.

I manually cleaned the contents of the corresponding folder to see whether anything appear there, but there are no files written to the folder.

This started happening after uninstalling IPS XE 2019 Beta; what could possibly go wrong? Should I reinstall IPS XE 2016 to be able to build my solution?

Choose Only One Processor to Run

$
0
0

Dear all,

I am using IVF 18 with Visual Studio 2017. The desktop has two CPUs, E5-2630 V4*2

Each CPU has 20 threads.

Two questions: 

1. How can I run my code only on the first CPU (or one of them)?

2. The second CPU was recently installed (With a new memory stick as well). Why the code run slower than the previous case with only one CPU?

Each worker in the parallel procedure keep a large private copy of several large multi-dimensional arrays. Can this be the reason?

Here is the optimization parameters I use

/nologo /MP /O3 /QxHost /Qparallel /Qpar-threshold:85 /Qvec-threshold:85 /Qopt-prefetch=2 /Qipo /Qopenmp /module:"x64\Release\\" /object:"x64\Release\\" /Fd"x64\Release\vc150.pdb" /libs:static /threads /c

 

Thanks a lot.

 

Robert

Viewing all 5691 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>