forked from TESSEorg/ttg
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ttg::device in the top of the hierarchy, rename functions to be …
…more explicit.
- Loading branch information
Showing
6 changed files
with
35 additions
and
33 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,15 @@ | ||
#ifndef TTG_DEVICE_H | ||
#define TTG_DEVICE_H | ||
|
||
#include "ttg/fwd.h" | ||
|
||
namespace ttg { | ||
namespace device { | ||
std::size_t get_nb() { return TTG_IMPL_NS::device::get_nb(); } | ||
void *memory_allocate(int did, std::size_t size) { return TTG_IMPL_NS::device::memory_allocate(did, size); } | ||
void memory_free(int did, void *p) { TTG_IMPL_NS::device::memory_free(did, p); } | ||
ttg::ExecutionSpace execution_space(int did) { return TTG_IMPL_NS::device::execution_space(did); } | ||
} | ||
} | ||
|
||
#endif /* TTG_DEVICE_H */ |
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 was deleted.
Oops, something went wrong.