-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fixes build and tests on Windows #1519
Open
kennyweiss
wants to merge
19
commits into
develop
Choose a base branch
from
bugfix/kweiss/windows-build
base: develop
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.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
904fd03
Replace posix drand48 with axom::utilities::random_real
kennyweiss ec6fab7
Exports some static const members in mir component
kennyweiss e785cac
Bugfix -- use native path for AXOM_DATA_DIR
kennyweiss d181b88
Bugfix and unit tests for qsort algorithm
kennyweiss 852db92
Some more fixes for mir tests on Windows
kennyweiss 77b0b26
Fixes some quest examples for MSVC
kennyweiss 0ed515a
Slight tweak to docs
kennyweiss 5a7dbd3
Slight rework of sidre_read_write_userdefined_data test
kennyweiss ade5d04
Use iterator interface in several functions in sidre::Group
kennyweiss f1e9913
Bugfix: Adds missing return value to function in non-umpire configs
kennyweiss fe5ca65
style
b15d4f0
Updates vcpkg SHA to 2025.02.14 release
kennyweiss bc6b5cf
Adds a patch to [email protected] to add a missing include
kennyweiss 9b1e937
Fixes an msvc warning related to __has_attribute
kennyweiss b1b5b78
Fixes another `constexpr->static constexpr` for lambdas in msvc
kennyweiss 0523b5f
Bugfix: Moved strings were being used
kennyweiss a4d08fa
Bugfix: Windows does not allow rename when the destination already ex…
kennyweiss c54ef4b
Bugfix for MFEMSidreDataCollection::LoadExternalData()
kennyweiss 99d4ebf
style
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
12 changes: 12 additions & 0 deletions
12
scripts/vcpkg_ports/umpire/v2024.07.0-chrono-include.patch
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,12 @@ | ||
diff --git a/src/umpire/event/event.hpp b/src/umpire/event/event.hpp | ||
index 03f0d37..db84c1c 100644 | ||
--- a/src/umpire/event/event.hpp | ||
+++ b/src/umpire/event/event.hpp | ||
@@ -7,6 +7,7 @@ | ||
#ifndef UMPIRE_event_HPP | ||
#define UMPIRE_event_HPP | ||
|
||
+#include <chrono> | ||
#include <cstdint> | ||
#include <map> | ||
#include <sstream> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,11 @@ | |
//--------------------------------------------------------------------------- | ||
// Axom modifications | ||
// NOTE: The values for EA-EL and N0-N3 were reduced. | ||
// NOTE: We're using AXOM_MIR_EXPORT instead of VISIT_VTK_LIGHT_API througout | ||
// clang-format off | ||
//#include <visit_vtk_light_exports.h> | ||
#define VISIT_VTK_LIGHT_API | ||
|
||
#include "axom/export/mir.h" | ||
|
||
#include <cstdlib> | ||
namespace axom { | ||
namespace mir { | ||
|
@@ -88,87 +90,87 @@ namespace visit { | |
#define NOCOLOR 122 | ||
|
||
// Tables | ||
extern VISIT_VTK_LIGHT_API int numClipCasesHex; | ||
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. Thanks for fixing the export macro. I don't know how I overlooked that. 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. (there were a lot of files :) ) |
||
extern VISIT_VTK_LIGHT_API int numClipShapesHex[256]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesHex[256]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesHex[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesVox; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesVox[256]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesVox[256]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesVox[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesWdg; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesWdg[64]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesWdg[64]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesWdg[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesPyr; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesPyr[32]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesPyr[32]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesPyr[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesTet; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesTet[16]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesTet[16]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesTet[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesQua; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesQua[16]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesQua[16]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesQua[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesPix; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesPix[16]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesPix[16]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesPix[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesTri; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesTri[8]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesTri[8]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesTri[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesLin; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesLin[4]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesLin[4]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesLin[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesVtx; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesVtx[2]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesVtx[2]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesVtx[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesPoly5; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesPoly5[32]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesPoly5[32]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesPoly5[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesPoly6; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesPoly6[64]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesPoly6[64]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesPoly6[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesPoly7; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesPoly7[128]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesPoly7[128]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesPoly7[]; | ||
|
||
extern VISIT_VTK_LIGHT_API int numClipCasesPoly8; | ||
extern VISIT_VTK_LIGHT_API int numClipShapesPoly8[256]; | ||
extern VISIT_VTK_LIGHT_API int startClipShapesPoly8[256]; | ||
extern VISIT_VTK_LIGHT_API unsigned char clipShapesPoly8[]; | ||
extern AXOM_MIR_EXPORT int numClipCasesHex; | ||
extern AXOM_MIR_EXPORT int numClipShapesHex[256]; | ||
extern AXOM_MIR_EXPORT int startClipShapesHex[256]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesHex[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesVox; | ||
extern AXOM_MIR_EXPORT int numClipShapesVox[256]; | ||
extern AXOM_MIR_EXPORT int startClipShapesVox[256]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesVox[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesWdg; | ||
extern AXOM_MIR_EXPORT int numClipShapesWdg[64]; | ||
extern AXOM_MIR_EXPORT int startClipShapesWdg[64]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesWdg[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesPyr; | ||
extern AXOM_MIR_EXPORT int numClipShapesPyr[32]; | ||
extern AXOM_MIR_EXPORT int startClipShapesPyr[32]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesPyr[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesTet; | ||
extern AXOM_MIR_EXPORT int numClipShapesTet[16]; | ||
extern AXOM_MIR_EXPORT int startClipShapesTet[16]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesTet[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesQua; | ||
extern AXOM_MIR_EXPORT int numClipShapesQua[16]; | ||
extern AXOM_MIR_EXPORT int startClipShapesQua[16]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesQua[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesPix; | ||
extern AXOM_MIR_EXPORT int numClipShapesPix[16]; | ||
extern AXOM_MIR_EXPORT int startClipShapesPix[16]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesPix[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesTri; | ||
extern AXOM_MIR_EXPORT int numClipShapesTri[8]; | ||
extern AXOM_MIR_EXPORT int startClipShapesTri[8]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesTri[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesLin; | ||
extern AXOM_MIR_EXPORT int numClipShapesLin[4]; | ||
extern AXOM_MIR_EXPORT int startClipShapesLin[4]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesLin[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesVtx; | ||
extern AXOM_MIR_EXPORT int numClipShapesVtx[2]; | ||
extern AXOM_MIR_EXPORT int startClipShapesVtx[2]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesVtx[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesPoly5; | ||
extern AXOM_MIR_EXPORT int numClipShapesPoly5[32]; | ||
extern AXOM_MIR_EXPORT int startClipShapesPoly5[32]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesPoly5[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesPoly6; | ||
extern AXOM_MIR_EXPORT int numClipShapesPoly6[64]; | ||
extern AXOM_MIR_EXPORT int startClipShapesPoly6[64]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesPoly6[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesPoly7; | ||
extern AXOM_MIR_EXPORT int numClipShapesPoly7[128]; | ||
extern AXOM_MIR_EXPORT int startClipShapesPoly7[128]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesPoly7[]; | ||
|
||
extern AXOM_MIR_EXPORT int numClipCasesPoly8; | ||
extern AXOM_MIR_EXPORT int numClipShapesPoly8[256]; | ||
extern AXOM_MIR_EXPORT int startClipShapesPoly8[256]; | ||
extern AXOM_MIR_EXPORT unsigned char clipShapesPoly8[]; | ||
|
||
//--------------------------------------------------------------------------- | ||
// Axom modifications | ||
#define ST_MIN ST_TET | ||
#define ST_MAX (ST_PNT + 1) | ||
#undef VISIT_VTK_LIGHT_API | ||
extern const size_t clipShapesTriSize; | ||
extern const size_t clipShapesQuaSize; | ||
extern const size_t clipShapesTetSize; | ||
extern const size_t clipShapesPyrSize; | ||
extern const size_t clipShapesWdgSize; | ||
extern const size_t clipShapesHexSize; | ||
|
||
extern AXOM_MIR_EXPORT const size_t clipShapesTriSize; | ||
extern AXOM_MIR_EXPORT const size_t clipShapesQuaSize; | ||
extern AXOM_MIR_EXPORT const size_t clipShapesTetSize; | ||
extern AXOM_MIR_EXPORT const size_t clipShapesPyrSize; | ||
extern AXOM_MIR_EXPORT const size_t clipShapesWdgSize; | ||
extern AXOM_MIR_EXPORT const size_t clipShapesHexSize; | ||
} // namespace visit | ||
} // namespace clipping | ||
} // namespace mir | ||
|
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
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.
@davidbeckingsale -- My local machine did not need this on Windows, but our CI needed this for [email protected].
I saw that it was recently added to umpire@develop -- LLNL/Umpire#934