-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update calculator files, add calculator generated files to CI
- Loading branch information
Showing
5 changed files
with
58 additions
and
4 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,6 @@ | ||
SET_FIELD(BabyBear); | ||
constexpr size_t kRegCountAccum = 1; | ||
constexpr size_t kRegCountCode = 1; | ||
constexpr size_t kRegCountData = 7; | ||
constexpr size_t kRegCountGlobal = 4; | ||
constexpr size_t kRegCountMix = 4; |
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,13 @@ | ||
__device__ constexpr TopLayout kLayout_Top = TopLayout{ | ||
.op = NondetRegLayout{._super = /*offset=*/0}, | ||
.arg1 = NondetRegLayout{._super = /*offset=*/1}, | ||
.arg2 = NondetRegLayout{._super = /*offset=*/2}, | ||
.expected = NondetRegLayout{._super = /*offset=*/3}, | ||
._0 = OneHotLayout{._super = | ||
NondetRegLayout2LayoutArray{NondetRegLayout{._super = /*offset=*/4}, | ||
NondetRegLayout{._super = /*offset=*/5}}}, | ||
.result = TopResultLayout{._super = NondetRegLayout{._super = /*offset=*/6}, | ||
.arm0 = NondetRegLayout{._super = /*offset=*/6}, | ||
.arm1 = NondetRegLayout{._super = /*offset=*/6}}}; | ||
__device__ constexpr _globalLayout kLayoutGlobal = | ||
_globalLayout{.result = NondetRegLayout{._super = /*offset=*/0}}; |
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,33 @@ | ||
struct NondetRegLayout { | ||
Reg _super; | ||
}; | ||
using NondetRegLayout2LayoutArray = ::cuda::std::array<NondetRegLayout,2>; | ||
struct OneHotLayout { | ||
NondetRegLayout2LayoutArray _super; | ||
}; | ||
struct TopResultLayout { | ||
NondetRegLayout _super; | ||
NondetRegLayout arm0; | ||
NondetRegLayout arm1; | ||
}; | ||
struct TopLayout { | ||
NondetRegLayout op; | ||
NondetRegLayout arg1; | ||
NondetRegLayout arg2; | ||
NondetRegLayout expected; | ||
OneHotLayout _0; | ||
TopResultLayout result; | ||
}; | ||
struct _globalLayout { | ||
NondetRegLayout result; | ||
}; | ||
struct NondetRegStruct { | ||
Val _super; | ||
}; | ||
using Val2Array = ::cuda::std::array<Val,2>; | ||
using NondetRegStruct2Array = ::cuda::std::array<NondetRegStruct,2>; | ||
struct OneHotStruct { | ||
NondetRegStruct2Array _super; | ||
}; | ||
struct TopStruct { | ||
}; |