Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaskingScheduler.hpp: No such file or directory #269

Open
varunmittal91 opened this issue Feb 2, 2016 · 7 comments
Open

TaskingScheduler.hpp: No such file or directory #269

varunmittal91 opened this issue Feb 2, 2016 · 7 comments

Comments

@varunmittal91
Copy link

While trying to include <Grappa.hpp>, compiler returns TaskingScheduler.hpp: No such file or directory

I cannot find this file and a lot of include file seems to be dependent on this.

@nelsonje
Copy link
Member

nelsonje commented Feb 2, 2016

Could you give some more details on what you're doing?

Without any context, I'm guessing you're trying to link against an installed version of Grappa, as described in the two sections here, "Installing Grappa" and "External builds / Using Grappa as a library":
https://github.com/uwsampa/grappa/blob/master/BUILD.md#installing-grappa

Is that right? If so, and you didn't use --prefix when running configure, make sure you're adding all the include paths listed in the file <grappa repo>/build/Make+Release/install/share/Grappa/grappa.mk.

But maybe that's not what you're doing. Let me know!

@varunmittal91
Copy link
Author

I am trying to write hello_world program.

To compile this is what I am doing: g++ test.cpp -I Make+Release/install/include/Grappa/ -I Make+Release/install/include/ --std=c++11 -L Make+Release/install/lib/ -lGrappa

@nelsonje
Copy link
Member

nelsonje commented Feb 2, 2016

Great. You need more compiler flags than that. Look at what is in install/share/Grappa/grappa.mk for the full set.

@nelsonje
Copy link
Member

nelsonje commented Feb 2, 2016

In fact, I suggest following the directions at the top of that file to create a makefile that will deal with the flags automatically.

@varunmittal91
Copy link
Author

Found this, -I$(GRAPPA_PREFIX)/include/Grappa/tasks
What if we change the include path inside headers to accommodate tasks.

Also makefile is generating .exe targets on Linux, which fail.

@nelsonje
Copy link
Member

nelsonje commented Feb 2, 2016

Not sure I understand. Look in applications/demos/standalone for an example of using the grappa.mk GNU Make include file; if you can do "make install" successfully on Grappa, you should be able to "source /bin/settings.sh" and then say "make" in applications/demos/standalone and get a working binary.

As a side effect, you'll see all the flags that the configure script decided were necessary to build a Grappa application. You need a bunch of flags set; more than just C++11 and include paths; for instance, you need to link with your MPI library.

@nelsonje
Copy link
Member

nelsonje commented Feb 2, 2016

Can you tell me the exact command you're running? If there's a bug in our
build or documentation I'd like to fix it. (Make sure that you're sourcing
settings.sh from /build/Make+Release/install/bin and not the
build directory itself.)

And we do have a Docker image for single-node operation:
https://hub.docker.com/r/uwsampa/grappa/

On Mon, Feb 1, 2016 at 7:47 PM, Varun Mittal notifications@github.com
wrote:

Thanks for helping me setup the repository, I am having trouble reading
environment source file.
Tried building several times.
It says bash: /grappa/build/bin/env.sh: No such file or directory
Is there a per-built docker/vm image with environment setup.


Reply to this email directly or view it on GitHub
#269 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants