-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from sbriseid/omp_config_file
Moved omp macro (for handling missing windows auto schedule) to omp c…
- Loading branch information
Showing
9 changed files
with
62 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright (C) 1998, 2000-2007, 2010, 2011, 2012, 2013 SINTEF ICT, | ||
* Applied Mathematics, Norway. | ||
* | ||
* Contact information: E-mail: [email protected] | ||
* SINTEF ICT, Department of Applied Mathematics, | ||
* P.O. Box 124 Blindern, | ||
* 0314 Oslo, Norway. | ||
* | ||
* This file is part of GoTools. | ||
* | ||
* GoTools is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* GoTools is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public | ||
* License along with GoTools. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
* | ||
* In accordance with Section 7(b) of the GNU Affero General Public | ||
* License, a covered work must retain the producer line in every data | ||
* file that is created or manipulated using GoTools. | ||
* | ||
* Other Usage | ||
* You can be released from the requirements of the license by purchasing | ||
* a commercial license. Buying such a license is mandatory as soon as you | ||
* develop commercial activities involving the GoTools library without | ||
* disclosing the source code of your own applications. | ||
* | ||
* This file may be used in accordance with the terms contained in a | ||
* written agreement between you and SINTEF ICT. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#ifdef _OPENMP | ||
|
||
#include <omp.h> | ||
|
||
// Fallback solution for the missing auto scheduler in Visual Studio 2022 (and earlier). The runtime scheduler is the | ||
// closest option. | ||
#ifdef _WIN32 | ||
#define OMP_SCHEDULE_AUTO schedule(runtime) | ||
#else | ||
#define OMP_SCHEDULE_AUTO schedule(auto) | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters