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

Check compiler version and print helpful message #39

Closed
kddevin opened this issue Jul 1, 2015 · 21 comments
Closed

Check compiler version and print helpful message #39

kddevin opened this issue Jul 1, 2015 · 21 comments
Assignees

Comments

@kddevin
Copy link

kddevin commented Jul 1, 2015

When we got compilation errors, Christian said it was due to our having an old compiler. Unfortunately, cmake didn't tell us that. Christian said, "I think Cmake doesn’t identify the compiler version internally. Though we could at least stop inside of Kokkos earlier. (I.e. Stop right away at the first compilation step with a compile time assert and a helpful message). Can you open an issue for that on the kokkos github page?"
Thanks.
Karen

crtrott added a commit that referenced this issue Jul 9, 2015
@crtrott
Copy link
Member

crtrott commented Jul 15, 2015

This should work now at least for GCC, Intel and PGI. It will fail early with a helpful error message.

@crtrott crtrott closed this as completed Jul 15, 2015
@samaraseeri
Copy link

Dear Folks,

I need the an older version of kokkos if you please. Have tried to build it on a cray machine with gnu but getting the following error "g++: error: unrecognized command line option '-h'". It was ablt to build the old version.

Thanks

@jgfouca
Copy link
Contributor

jgfouca commented Aug 10, 2015

Looking at this now.

@crtrott
Copy link
Member

crtrott commented Aug 10, 2015

This has nothing to do with the version of Kokkos. This is complaining about an argument to the compiler i.e. part of the CXX Flags. Kokkos never adds a -h.

@nmhamster
Copy link
Contributor

We just need to have the version checks also pipe error as well. Do you want me to add that, it "should be easy" (trademark).

@samaraseeri
Copy link

Hi,

I'm trying to build Kokkos on a Cray machine and getting the above error. A
month ago Kokkos was able to build with gcc without the above error. That
is why I'm asking for the older version if possible.

Best

On Mon, Aug 10, 2015 at 9:43 PM, Si Hammond notifications@github.com
wrote:

We just need to have the version checks also pipe error as well. Do you
want me to add that, it "should be easy" (trademark).


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.

@nmhamster
Copy link
Contributor

Should have a patch any second.

Si Hammond

Scalable Computer Architectures
Sandia National Laboratories, NM, USA

On 8/10/15, 12:49 PM, "samaraseeri" notifications@github.com wrote:

Hi,

I'm trying to build Kokkos on a Cray machine and getting the above error.
A
month ago Kokkos was able to build with gcc without the above error. That
is why I'm asking for the older version if possible.

Best

On Mon, Aug 10, 2015 at 9:43 PM, Si Hammond notifications@github.com
wrote:

We just need to have the version checks also pipe error as well. Do you
want me to add that, it "should be easy" (trademark).


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before
printing
this email.

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

@nmhamster
Copy link
Contributor

Can you try out the pull request diff in pull request #62 please? (#62). I think this should fix the error you are seeing.

@samaraseeri
Copy link

Cannot clone. It fails with the following message

git clone git@github.com:kokkos/kokkos.git
Cloning into 'kokkos'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

On Mon, Aug 10, 2015 at 10:14 PM, Si Hammond notifications@github.com
wrote:

Can you try out the pull request diff in pull request #62
#62 please? (#62
#62). I think this should fix the
error you are seeing.


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.

@crtrott
Copy link
Member

crtrott commented Aug 10, 2015

Si I don't understand how your patch would address the "-h" argument not recognized? That argument seems to come from the application which gets compiled not from Kokkos.

@samaraseeri
Copy link

Cannot clone latest change. Can anyone help.

Best

$ git clone git@github.com:kokkos/kokkos.git
Cloning into 'kokkos'...
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of
known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

On Tue, Aug 11, 2015 at 12:34 AM, Christian Trott notifications@github.com
wrote:

Si I don't understand how your patch would address the "-h" argument not
recognized? That argument seems to come from the application which gets
compiled not from Kokkos.


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.

@hcedwar
Copy link
Contributor

hcedwar commented Aug 10, 2015

@samaraseeri
Apparently your github access (in general) is not configured properly. I presume that you cannot clone from any github.com repository. Go to the github.com main page and verify that you are setup correctly.

@samaraseeri
Copy link

Now getting:

git clone git@github.com:kokkos/kokkos.git
Cloning into 'kokkos'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

On Tue, Aug 11, 2015 at 1:19 AM, hcedwar notifications@github.com wrote:

@samaraseeri https://github.com/samaraseeri
Apparently your github access (in general) is not configured properly. I
presume that you cannot clone from any github.com repository. Go to the
github.com main page and verify that you are setup correctly.


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.

@nmhamster
Copy link
Contributor

The -h comes from the Makefile seeing GNU as Cray doesn't it?

Si Hammond
Scalable Computer Architectures
Sandia National Laboratories, NM
[Sent remotely, please excuse typing errors]


From: Christian Trott notifications@github.com
Sent: Monday, August 10, 2015 3:34:01 PM
To: kokkos/kokkos
Cc: Hammond, Simon David (-EXP)
Subject: [EXTERNAL] Re: [kokkos] Check compiler version and print helpful message (#39)

Si I don't understand how your patch would address the "-h" argument not recognized? That argument seems to come from the application which gets compiled not from Kokkos.

Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-129616301.

@samaraseeri
Copy link

When try to clone I get :

git clone git@github.com:kokkos/kokkos.git
Cloning into 'kokkos'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

On Tue, Aug 11, 2015 at 2:00 AM, Si Hammond notifications@github.com
wrote:

The -h comes from the Makefile seeing GNU as Cray doesn't it?

Si Hammond
Scalable Computer Architectures
Sandia National Laboratories, NM
[Sent remotely, please excuse typing errors]


From: Christian Trott notifications@github.com
Sent: Monday, August 10, 2015 3:34:01 PM
To: kokkos/kokkos
Cc: Hammond, Simon David (-EXP)
Subject: [EXTERNAL] Re: [kokkos] Check compiler version and print helpful
message (#39)

Si I don't understand how your patch would address the "-h" argument not
recognized? That argument seems to come from the application which gets
compiled not from Kokkos.

Reply to this email directly or view it on GitHub<
https://github.com/kokkos/kokkos/issues/39#issuecomment-129616301>.


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.

@samaraseeri
Copy link

When try to clone I get :

git clone git@github.com:kokkos/kokkos.git
Cloning into 'kokkos'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Best

On Tue, Aug 11, 2015 at 2:04 AM, Samar Aseeri samar.aseeri@kaust.edu.sa
wrote:

When try to clone I get :

git clone git@github.com:kokkos/kokkos.git
Cloning into 'kokkos'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

On Tue, Aug 11, 2015 at 2:00 AM, Si Hammond notifications@github.com
wrote:

The -h comes from the Makefile seeing GNU as Cray doesn't it?

Si Hammond
Scalable Computer Architectures
Sandia National Laboratories, NM
[Sent remotely, please excuse typing errors]


From: Christian Trott notifications@github.com
Sent: Monday, August 10, 2015 3:34:01 PM
To: kokkos/kokkos
Cc: Hammond, Simon David (-EXP)
Subject: [EXTERNAL] Re: [kokkos] Check compiler version and print helpful
message (#39)

Si I don't understand how your patch would address the "-h" argument not
recognized? That argument seems to come from the application which gets
compiled not from Kokkos.

Reply to this email directly or view it on GitHub<
https://github.com/kokkos/kokkos/issues/39#issuecomment-129616301>.


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.

@crtrott
Copy link
Member

crtrott commented Aug 10, 2015

Ah the -hstd=c++11 I overlooked that. Yes thats right. Samaraseeri: try cloning via the https route:
git clone https://github.com/kokkos/kokkos.git

@samaraseeri
Copy link

Yes, the build completed. Thanks for the help.

Best

On Tue, Aug 11, 2015 at 2:04 AM, Christian Trott notifications@github.com
wrote:

Ah the -hstd=c++11 I overlooked that. Yes thats right. Samaraseeri: try
cloning via the https route:
git clone https://github.com/kokkos/kokkos.git


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

Samar Aseeri, PhD
Computational Scientist
KAUST Supercomputing Laboratory (KSL) - Building 1 -Office: 0128
King Abdullah University of Science & Technology
Thuwal, Saudi Arabia


This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.

@nmhamster
Copy link
Contributor

I have/(had) a test case which caught the -hstd=c++11 here so regardless it is an issue :(.

@nmhamster
Copy link
Contributor

@crtrott @hcedwar Can you merge pull request #62 into the develop when you have time please?

@crtrott
Copy link
Member

crtrott commented Sep 5, 2015

I think this is addressed please reopen if not.

@crtrott crtrott closed this as completed Sep 5, 2015
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

6 participants