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

potential bug with compiler setting #120

Open
tj-sun opened this issue May 4, 2017 · 6 comments
Open

potential bug with compiler setting #120

tj-sun opened this issue May 4, 2017 · 6 comments
Assignees

Comments

@tj-sun
Copy link
Contributor

tj-sun commented May 4, 2017

It appears the following test passes with gcc but fails with icc
regression/test_helmholtz_sphere.py::test_helmholtz_sphere_lowestorder[MeshClass1]

@tj-sun tj-sun self-assigned this May 4, 2017
@wence-
Copy link
Contributor

wence- commented May 4, 2017

fails in what way?

@tj-sun
Copy link
Contributor Author

tj-sun commented May 4, 2017

convergence rate

assert (l2conv > 1.7).all()
E assert <built-in method all of numpy.ndarray object at 0x7f88b791cd00>()
E + where <built-in method all of numpy.ndarray object at 0x7f88b791cd00> = array([ 0.04270851, 0.01346899]) > 1.7.all

@wence-
Copy link
Contributor

wence- commented May 4, 2017

OK, yes, that's bad.

@miklos1
Copy link
Contributor

miklos1 commented May 5, 2017

Is this a bug in the Intel compiler, TSFC, or COFFEE?

@tj-sun
Copy link
Contributor Author

tj-sun commented May 5, 2017

On first look it appears that 1) the c files are identical 2) the compilation commands are identical
So I guess it's probably problem with either the compiler (unlikely?) or that we ought to use different flags for different compilers somehow.

Will have another look later.

@miklos1
Copy link
Contributor

miklos1 commented May 5, 2017

Before saying that it's a C compiler bug, you must judge that the generated code is standard conforming and does not contain undefined behaviour.

Another thing to try with potential C compiler bugs is the change/lower the optimisation level.

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

3 participants