-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tuning tool for permutation rank3
- Loading branch information
Showing
18 changed files
with
709 additions
and
126 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,84 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor | ||
{ | ||
namespace tuning | ||
{ | ||
|
||
namespace permutation | ||
{ | ||
|
||
void genInstances_F16_3_256_128_128_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F16_3_256_128_128_8_8( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F16_3_256_64_64_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F16_3_256_64_64_4_4( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F16_3_miscellaneous( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F32_3_256_128_128_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F32_3_256_128_128_8_8( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F32_3_256_64_64_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F32_3_256_64_64_4_4( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
void genInstances_F32_3_miscellaneous( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& | ||
instances); | ||
|
||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>> | ||
genInstances_F16_3() | ||
{ | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>> | ||
instances; | ||
genInstances_F16_3_256_64_64_4_4(instances); | ||
genInstances_F16_3_256_64_64_16_16(instances); | ||
genInstances_F16_3_256_128_128_8_8(instances); | ||
genInstances_F16_3_256_128_128_16_16(instances); | ||
genInstances_F16_3_miscellaneous(instances); | ||
return instances; | ||
} | ||
|
||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>> | ||
genInstances_F32_3() | ||
{ | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>> | ||
instances; | ||
genInstances_F32_3_256_64_64_4_4(instances); | ||
genInstances_F32_3_256_64_64_16_16(instances); | ||
genInstances_F32_3_256_128_128_8_8(instances); | ||
genInstances_F32_3_256_128_128_16_16(instances); | ||
genInstances_F32_3_miscellaneous(instances); | ||
return instances; | ||
} | ||
|
||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F16_3_256_128_128_16_16.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F16_3_256_128_128_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_128_128_16_16<F16, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F16_3_256_128_128_32_32.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F16_3_256_128_128_32_32( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_128_128_32_32<F16, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F16_3_256_128_128_8_8.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F16_3_256_128_128_8_8( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_128_128_8_8<F16, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F16_3_256_64_64_16_16.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F16_3_256_64_64_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_64_64_16_16<F16, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F16_3_256_64_64_4_4.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F16_3_256_64_64_4_4( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_64_64_4_4<F16, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F16_3_miscellaneous.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F16_3_miscellaneous( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F16>, ck::Tuple<F16>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_miscellaneous<F16, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F32_3_256_128_128_16_16.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F32_3_256_128_128_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_128_128_16_16<F32, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F32_3_256_128_128_32_32.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F32_3_256_128_128_32_32( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_128_128_32_32<F32, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F32_3_256_128_128_8_8.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F32_3_256_128_128_8_8( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_128_128_8_8<F32, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F32_3_256_64_64_16_16.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F32_3_256_64_64_16_16( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_64_64_16_16<F32, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F32_3_256_64_64_4_4.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F32_3_256_64_64_4_4( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_256_64_64_4_4<F32, 3>(instances); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
tuning/permutation/permutation_instance_F32_3_miscellaneous.cpp
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 @@ | ||
#include "permutation_instance.hpp" | ||
|
||
namespace hiptensor::tuning::permutation | ||
{ | ||
|
||
void genInstances_F32_3_miscellaneous( | ||
std::vector<std::unique_ptr< | ||
DeviceElementwise<ck::Tuple<F32>, ck::Tuple<F32>, UnaryScaleSquare, 3>>>& instances) | ||
{ | ||
genInstances_miscellaneous<F32, 3>(instances); | ||
} | ||
|
||
} |
Oops, something went wrong.