Error compiling the code

Hi guys

I have downloaded the free version of the PFI Fortran compiler, and I have installed all acording the pdf guide
but im having two problems

  1. When I create a new project for 32bits, I try to compile the project but I get the error
    “visual studio cannot debug because the debug target f:\user\myuser\documents\visual studio 2010\Projects\myproject\win32\debug\myproject.exe” is missing.

and

  1. When I create a new project for 64bits, when I press F6 to generated the solution I don’t get any error, But when I press F6 to start the project appear the black window where must be appear the word “hello world”, but in the screen don’t show nothing and later this window stays blocked.

I have downloaded the visual fortran PGI 64bit & 32 bits - windows OS.

Im trying to develop and application for GPU.

Thank you very much

Hi dgarzon,

downloaded the free version of the PFI Fortran compiler,

Do you mean you are using a a 15-day trial license or a free PVF Education license? The free PVF Education license does not include support for GPUs.

  1. When I create a new project for 32bits, I try to compile the project but I get the error
    “visual studio cannot debug because the debug target f:\user\myuser\documents\visual studio 2010\Projects\myproject\win32\debug\myproject.exe” is missing.

We’re there any build errors? Does the executable exist?

  1. When I create a new project for 64bits, when I press F6 to generated the solution I don’t get any error, But when I press F6 to start the project appear the black window where must be appear the word “hello world”, but in the screen don’t show nothing and later this window stays blocked.

What OS and CPU processor do you have? I ask because Win7 didn’t support AVX until SP1 and cause errors when targeting AVX enabled processors. You can test this by targeting an older or generic processor (Properties->Fortran->Target Processor)

  • Mat

Hi mkcolg

Thankyou for your answer.

I have downloaded a free version (30 days) of visual fortran.

about the question 1, I dont get any error because the visual studio dont know how to compile the code, for that motive the .exe is not generate.

About the question 2, Im working on windows 7. The processor is a Intel core i5.


Now, i have another question.

which version of PGI I have to download to work with gpu?
I always have been working with the nvcc compiler, but I dont know then which is best option with the PGI packets.

This are the options that i have to download the PGI, and would need to work with visual studio.

PGI Accelerator Fortran/c/c++/ workstation
PGI Accelerator Fortran workstation
PGI Accelerator c/c++ workstation
PGI Accelerator Fortran/c/c++ server
PGI Accelerator c/c++ server
PGI Accelerator visual Fortran
PGI Accelerator visual Fortran with shell
PGI Fortran workstation
PGI c/c++ workstation
PGI Fortran/c/c++ server
PGI Fortran server
PGI c/c++ server
PGI visual Fortran
PGI visual Fortran with VS shell
PGI debugger

Thank you very much

This are the options that i have to download the PGI, and would need to work with visual studio.

Portland Visual Fortran is our Visual Studio product. Download the “with Shell” version if you do not already have VS. Without the shell are for those that already have VS. Be sure to select the correct platform for the Visual Studio version you are using. VS2012 is not compatible with older Windows versions.

About the question 2, Im working on windows 7. The processor is a Intel core i5.

Core i5 is just a marketing name. What you need to know is the specific processor type (for example Core i5-2600) to determine if your processor does or does not support AVX instructions.

about the question 1, I dont get any error because the visual studio dont know how to compile the code, for that motive the .exe is not generate.

Sorry, I’m not understanding. Why doesn’t know how to compile the code?

  • Mat

Hello mkcolg

My main question is: Can I with visual fortran develop and application for gpu?

second:

Sorry, I’m not understanding. Why doesn’t know how to compile the code?

I have VS2010, and I have installed the visual fortran, acording to the installation guide.

I have this code

!
!  ConsoleApp.f90
!
!  Fortran Console Application 
!  Generated by PGI Visual Fortran(R)
!  20/06/2013 16:27:32
!

      program prog

      implicit none

      ! Variables

      ! Body

      end program prog

Now, I can’t compile or run this example.
When I try to compile this code, visual studio show me a message that says “error at generate”, but in the error list don’t show anything.

And when I try to run it directly, visual studio show me this message

“visual studio cannot debug because the debug target f:\user\myuser\documents\visual studio 2010\Projects\myproject\win32\debug\myproject.exe” is missing. "

So that my question is: Why can I not to execute or compile this code?

Thank you very much

Hi dgarzon,

Let’s focus on getting the program built for the Win32 platform first. What steps do you take to build the PVF project? For example, do you use Build Solution from the Build menu? If not, what do you use?

Where does the error message appear? Does it appear in its own dialog box? If so, please include a screen shot of it in your reply. If not, please explain where and when it appears, and copy the full text of the message into your reply.

Annemarie

Hello ams

Thank you for your help.

To compile the code I press F6 and to Run the app I press F5.

This is the print screen of the code

https://www.dropbox.com/s/nfq3dh9hmlxupbc/PGU_error.png

As we can see, in the error list not appear nothing about.

But the anyway, I have found a log file with this message

PVF Build Log

Compiling Project …

ConsoleApp.f90

The compiler (pgfortran.exe) cannot be found.

PVFProject4_32b build failed.

What I have to do to link the pgfortran with the visual Studio?

Thanks

Hi,

Would you please send the screen shot to trs@pgroup.com and request that it be forwarded to me? Thanks!

Annemarie

Thanks for sending the screen shot to trs. I have just received it.

From the build log, it appears that the compilers have not been installed correctly.

Please look in the Control Panel’s Programs & Features dialog. What PGI products are listed?

Please open Visual Studio. Look in the Help | About dialog. What version of Visual Studio does it say? i.e., Shell, Professional, etc.

Annemarie

Hi ivonneleonor,

We’re not sure what the solution was here since the user didn’t respond. However, the problem was that the 32-bit compilers didn’t install for some reason. Not sure if this is the same problem you’re encountering.

Can you please look in the Control Panel’s Programs & Features dialog and tell what PGI products are listed?

Also, please open Visual Studio and look in the Help | About dialog. What version of Visual Studio does it say? i.e., Shell, Professional, etc.

  • Mat