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.
MRA: Add print task and have it compile for the host
Execution on the host currently won't work because there is no host-side device support. We need to add the ExecutionSpace to ttg::device::Task and allow the Host space to be selected there. Signed-off-by: Joseph Schuchart <[email protected]>
- Loading branch information
Showing
11 changed files
with
329 additions
and
110 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
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,18 @@ | ||
#include "ttg.h" | ||
#include "util.h" | ||
|
||
/* reuse dim3 from CUDA/HIP if available*/ | ||
#if !defined(TTG_HAVE_CUDA) && !defined(TTG_HAVE_HIP) | ||
struct dim3 { | ||
int x, y, z; | ||
}; | ||
#endif | ||
|
||
/* define our own thread layout (single thread) */ | ||
static constexpr const dim3 threadIdx = {0, 0, 0}; | ||
static constexpr const dim3 blockIdx = {0, 0, 0}; | ||
static constexpr const dim3 blockDim = {1, 1, 1}; | ||
static constexpr const dim3 gridDim = {1, 1, 1}; | ||
|
||
/* include the CUDA code and hope that all is well */ | ||
#include "kernels.cu" |
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.