spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
118 stars 52 forks source link

Quick n dirty fix for Intel Compiler Error (Possible bug) #422

Closed DanielSchuerhoff closed 6 years ago

DanielSchuerhoff commented 6 years ago

Contributor checklist


Description

Dirty fix for bug occuring with Intel Compiler (Versions 17, 18, 19b) and OpenMP preventing Compilation Tested for successfull compilation (/w OpenMP but without CUDA) with:

on centos-release-7-4.1708.el7.centos.x86_64

The Problem seems to be somewhere between the Intel Compiler and the n_cells_new, which is referenced from a const Geometry &. Using a local const int copy for the loops fixes the problem.

This Code fails to compile on:

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 90.621% when pulling b87b3880e26ebad1c2fd60cd5f131feba6534450 on DanielSchuerhoff:master into 6f5a0c068e0f79adf62e889853b1171659ab2028 on spirit-code:master.

codecov[bot] commented 6 years ago

Codecov Report

Merging #422 into master will decrease coverage by 0.03%. The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #422      +/-   ##
==========================================
- Coverage   54.65%   54.62%   -0.04%     
==========================================
  Files          79       79              
  Lines        7624     7625       +1     
==========================================
- Hits         4167     4165       -2     
- Misses       3457     3460       +3
DanielSchuerhoff commented 6 years ago

Added the requested comment, clearing up the necessity of the local copy. Furthermore successfully tested compilation with Intel 18.0.3.222

GPMueller commented 6 years ago

I did not pay attention to this before, but you should not branch from master. The contribution guide, as well as the pull request template tell you to branch from develop...

I will not merge pull requests directly into the main release branch.

GPMueller commented 6 years ago

Changing the base branch also does not help, as it now includes all the release commits...