-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CUDA offloaded events are now supported in APEX when writing out to OTF2. Still to do - the stream "threads" need to be annotated as GPU threads, and given device/context/stream labels.
- Loading branch information
Showing
7 changed files
with
211 additions
and
58 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
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,35 @@ | ||
// Copyright (c) 2014 University of Oregon | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#pragma once | ||
|
||
namespace apex { | ||
|
||
class cuda_thread_node { | ||
public: | ||
uint32_t _device; | ||
uint32_t _context; | ||
uint32_t _stream; | ||
cuda_thread_node(uint32_t device, uint32_t context, uint32_t stream) : | ||
_device(device), _context(context), _stream(stream) { } | ||
bool operator==(const cuda_thread_node &rhs) const { | ||
return (_device==rhs._device && | ||
_context==rhs._context && | ||
_stream==rhs._stream); | ||
} | ||
bool operator<(const cuda_thread_node &rhs) const { | ||
if (_device<rhs._device) { | ||
return true; | ||
} else if (_device == rhs._device && _context<rhs._context) { | ||
return true; | ||
} else if (_device == rhs._device && _context==rhs._context && _stream<rhs._stream) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
}; | ||
|
||
} | ||
|
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.