Help with Setting Up FortranCL Programming Environment

  • Context: Fortran 
  • Thread starter Thread starter Tusike
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around setting up the FortranCL programming environment, which is a Fortran implementation of OpenCL. Participants are sharing their experiences and troubleshooting steps related to installation on a Windows operating system, specifically addressing issues with command line usage and the MinGW compiler.

Discussion Character

  • Technical explanation
  • Homework-related
  • Debate/contested

Main Points Raised

  • One participant, Tusike, seeks assistance with setting up FortranCL after downloading the necessary files and encountering issues with the command prompt.
  • Another participant suggests ensuring the correct directory is being used and emphasizes the need to type `./configure` without spaces.
  • A different participant advises typing `configure` without the `./` prefix, suggesting that the command may not be executable in the current environment.
  • One contributor expresses uncertainty about Tusike's familiarity with MinGW and suggests that the `./configure` command may need to be run from the MSYS environment rather than the standard DOS terminal.
  • Tusike acknowledges a lack of experience with MinGW but confirms that after installing MSYS, the `./configure` command works, indicating progress in the setup process.
  • Tusike plans to install the OpenCL tools required by FortranCL and mentions downloading the SDK package from Intel's site as the next step.

Areas of Agreement / Disagreement

Participants generally agree on the need to use the correct command line environment for executing the setup commands, but there is no consensus on the exact steps or commands to use, as different suggestions are provided.

Contextual Notes

Participants express varying levels of familiarity with the tools and commands involved, which may affect the clarity of the guidance provided. The discussion does not resolve the potential confusion regarding the execution environment for the setup commands.

Who May Find This Useful

Individuals interested in programming with FortranCL, particularly those using Windows and the MinGW compiler, may find this discussion helpful for troubleshooting setup issues.

Tusike
Messages
137
Reaction score
0
Hi!

I wanted to ask if anybody here has any experience with FortranCL, the Fortran implementation of OpenCL.

If so, I would be really thankful if you could help me in setting up the programming environment to use it. So far, I downloaded the MinGW compilers for fortran and c, and the latest release of fortranCL:

https://code.google.com/p/fortrancl/downloads/detail?name=fortrancl-0.1alpha4.tar.gz&can=2&q=

I'm not really sure what to do with the files contained in the above package. The readme says to open up the command prompt and type in `./configure' as a first step, but I get the error '.' not recognized as an internal or external command...

Any help is greatly appreciated!

-Tusike
 
Technology news on Phys.org
First are you in the proper directory ie it should have a file named configure and second you need to type ./configure with no spaces between the . the slash and then configure.

Try it now.
 
Hi!
Thanks for the quick reply.

Yes, I am in the proper directory, and there is a file named 'configure', no extension.
I'm using Windows 7, but I read that fortranCL should work there too. I hope that's not the problem.

upload_2014-11-1_21-21-41.png
 
On the command line, just type configure, without the . and /. If that doesn't work, it's most likely because configure isn't an executable file.
 
Disclaimer: I have never used Fortrancl

I see you are working on Windows...

Have you ever written and compiled a Fortran program in Windows? I ask this because it seems to me that you may have just downloaded MinGW and probably don't know how to use it...?

The thing is that I suspect that such "./configure" command that you are supposed to run it is supposed to be run from within the "Linux-like" environment of the "msys" prompt command that came with MinGW...and NOT the DOS terminal that you show in your screenshot.
 
Yes, you are perfectly right that I don't really know how to use MinGW. (I am able to use it to compile fortran code in windows though).

I didn't know about MSYS, and I didn't include it when installing MinGW. But now I installed it as well, and the ./configure command is working!

My next step is to install the openCL tools FortranCL uses; I believe to do that I just have to download the SDK package from Intel's site (I have Intel HD Graphics 3000), the first two from here: https://software.intel.com/en-us/articles/opencl-drivers

If I run into any other problems I will ask them again here.

Thanks for everyone's help so far!

-Tusike
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 7 ·
Replies
7
Views
9K
  • · Replies 17 ·
Replies
17
Views
2K
Replies
5
Views
4K