-
Notifications
You must be signed in to change notification settings - Fork 15
[ISSUE-783] [ISSUE-773] Target Architecture #794
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
Closed
Closed
Changes from 12 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b01af62
Added conditional flag TARGET_ARCH and updated quickstart
AndrewBMadison 0351355
updated StudentSetup
AndrewBMadison 28d8808
Added cuda flags and new build options to cmakelists.
AndrewBMadison 7c73626
Merge branch 'AndrewDevelopment' into issue-783-targetArch
AndrewBMadison 8de5233
fix
4beaaba
fix
AndrewBMadison 424f6c2
revert changes to support legacy cuda
AndrewBMadison 920b649
cleanup
AndrewBMadison 08b4992
added documentation for using clang integration with vscode
AndrewBMadison f0ae727
added nvtx support
AndrewBMadison dbc37b3
changed defines to enum class
AndrewBMadison e103a77
Merge branch 'AndrewDevelopment' into issue-319-Validation-Mode
AndrewBMadison bb6a77d
implemented validation mode
AndrewBMadison 87af4df
clear new flags from cache
AndrewBMadison 9ab3af6
test
AndrewBMadison 8f1b4a8
Validation mode logging implementation
AndrewBMadison fb5bb3f
fixed cudaMemcpy bugs
AndrewBMadison 7fe76a7
increased max file size for vertices log file and logged the validati…
AndrewBMadison 0c2164f
matched log information in cgraphitti validation mode with ggraphitti…
AndrewBMadison e26b84a
Merge branch 'issue-319-Validation-Mode' into AndrewDevelopment
AndrewBMadison 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 hidden or 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 hidden or 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 hidden or 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,31 @@ | ||
/** | ||
* @file NvtxHelper.cpp | ||
* | ||
* @ingroup Simulator/Utils | ||
* | ||
* @brief Helper functions to enable nvtx profiling | ||
* When ENABLE_NVTX is false the functions are replaced with blank inline functions which are removed by the compiler | ||
* This file is only included in the utils library when ENABLE_CUDA=YES | ||
*/ | ||
|
||
#include "NvtxHelper.h" | ||
#include <cuda_runtime.h> | ||
#include <nvToolsExt.h> | ||
|
||
void nvtxPushColor(const std::string &name, Color pColor) | ||
{ | ||
nvtxEventAttributes_t eventAttrib = {}; | ||
eventAttrib.version = NVTX_VERSION; | ||
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE; | ||
eventAttrib.colorType = NVTX_COLOR_ARGB; | ||
eventAttrib.color = static_cast<uint32_t>(pColor); | ||
eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII; | ||
eventAttrib.message.ascii = name.c_str(); | ||
|
||
nvtxRangePushEx(&eventAttrib); | ||
} | ||
|
||
void nvtxPop() | ||
{ | ||
nvtxRangePop(); | ||
} |
This file contains hidden or 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,45 @@ | ||
/** | ||
* @file NvtxHelper.h | ||
* | ||
* @ingroup Simulator/Utils | ||
* | ||
* @brief Helper functions to enable nvtx profiling | ||
* When ENABLE_NVTX is false the functions are replaced with blank inline functions which are removed by the compiler | ||
*/ | ||
|
||
#ifndef NVTX_HELPER_H | ||
#define NVTX_HELPER_H | ||
|
||
#include <cstdint> | ||
#include <string> | ||
|
||
// Define NVTX colors (ARGB format) | ||
enum class Color : std::uint32_t { | ||
RED = 0xFFFF0000, | ||
GREEN = 0xFF00FF00, | ||
BLUE = 0xFF0000FF, | ||
YELLOW = 0xFFFFFF00, | ||
ORANGE = 0xFFFFA500, | ||
PURPLE = 0xFF800080 | ||
}; | ||
|
||
#ifdef ENABLE_NVTX | ||
|
||
// Function to push an NVTX range with a given name and color | ||
void nvtxPushColor(const std::string &name, Color pColor); | ||
|
||
// Function to pop the most recent NVTX range | ||
void nvtxPop(); | ||
|
||
#else | ||
inline void nvtxPushColor(const std::string &, Color) | ||
{ | ||
} | ||
inline void nvtxPop() | ||
{ | ||
} | ||
|
||
#endif // ENABLE_NVTX | ||
|
||
|
||
#endif // NVTX_HELPER_H |
This file contains hidden or 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 hidden or 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 hidden or 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
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.
I think we want this tracked by git; it's used for manual testing and should be kept in sync with the GitHub actions.