-
Notifications
You must be signed in to change notification settings - Fork 47
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
[WIP] OCCA Backend Update #1043
Draft
kris-rowe
wants to merge
22
commits into
CEED:main
Choose a base branch
from
argonne-lcf:occa-backend-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
c4ab772
Removes deprecated calls to `occa::linalg`.
kris-rowe 31a7629
Adds a dummy `ceed.h` header in include in OCCA kernels.
kris-rowe 1a3a1f9
Rewrite arrays of structs in format that OCCA can handle.
kris-rowe 3df7633
Includes the cmath header when compiling C++ code.
kris-rowe f1b142f
Removes math function headers which were causing OCCA JIT failures.
kris-rowe 1a6fffd
Rewrite arrays of structs in format that OCCA can handle.
kris-rowe 0aacae8
Rewrites fluids example qfunctions to be compatible with OCCA.
kris-rowe a879016
Rewrites advection problem kernels to work with OCCA.
kris-rowe 177848b
Rewrites blasius problem kernels to work with OCCA.
kris-rowe 4b11b94
Rewrites channel problem kernels to work with OCCA.
kris-rowe 46d6695
Rewrites dirichlet bc kernels to work with OCCA.
kris-rowe aed20a0
Rewrites newtonian kernels to work with OCCA.
kris-rowe 818ef30
Rewrites setupgeo kernels to be compatible with OCCA.
kris-rowe b97eee4
Rewrites stabilization kernels to be compatible with OCCA.
kris-rowe 9890d73
Rewrites stg kernels to be compatible with OCCA.
kris-rowe df482e8
Saves WIP before rebasing onto upstream libCEED.
kris-rowe f75f425
Rewrites pointer-to-array in t507 to be compatible with OCCA.
kris-rowe 1760b84
Removes filters excluding OCCA from certain tests.
kris-rowe eca1eaf
Removes previous merge conflicts.
kris-rowe bc3b4f6
Includes correct math header to be compatible with OCCA.
kris-rowe 2d6dba8
Appends `OCCA_DIR/lib` to LD_LIBRARY_PATH instead of overwriting.
kris-rowe 0c5cb32
Save WIP on OCCA backend to push to GitHub.
kris-rowe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _OCCA_INCLUDE_CEED_H_ | ||
#define _OCCA_INCLUDE_CEED_H_ | ||
// Phony header to include when compiling OKL | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's really intended that JiT headers don't go here in the backend folder. |
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,23 @@ | ||
/// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. | ||
/// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. | ||
/// | ||
/// SPDX-License-Identifier: BSD-2-Clause | ||
/// | ||
/// This file is part of CEED: http://github.com/ceed | ||
|
||
/// @file | ||
/// Public header for definitions related to using FP32 floating point (single | ||
/// precision) for CeedScalar. Include this header in ceed/ceed.h to use | ||
/// float instead of double. | ||
#ifndef _ceed_f32_h | ||
#define _ceed_f32_h | ||
|
||
/// Set base scalar type to FP32. (See CeedScalarType enum in ceed/ceed.h | ||
/// for all options.) | ||
#define CEED_SCALAR_TYPE CEED_SCALAR_FP32 | ||
typedef float CeedScalar; | ||
|
||
/// Machine epsilon | ||
#define CEED_EPSILON 6e-08 | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. | ||
/// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. | ||
/// | ||
/// SPDX-License-Identifier: BSD-2-Clause | ||
/// | ||
/// This file is part of CEED: http://github.com/ceed | ||
|
||
/// @file | ||
/// Public header for definitions related to using FP64 floating point (double | ||
/// precision) for CeedScalar. This is the default header included in ceed/ceed.h. | ||
#ifndef _ceed_f64_h | ||
#define _ceed_f64_h | ||
|
||
/// Set base scalar type to FP64. (See CeedScalarType enum in ceed/ceed.h | ||
/// for all options.) | ||
#define CEED_SCALAR_TYPE CEED_SCALAR_FP64 | ||
typedef double CeedScalar; | ||
|
||
/// Machine epsilon | ||
#define CEED_EPSILON 1e-16 | ||
|
||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to include this during JiT, see the example files like this in `/include/ceed/jit-source/cuda/cuda-jit.h'
Any files that will be used as JiT source should go in
include/ceed/jit-source/occa