feat: support misc kernel launch
This commit is contained in:
@@ -11,11 +11,7 @@ namespace deep_gemm {
|
||||
class DeviceRuntime {
|
||||
int num_sms = 0, tc_util = 0;
|
||||
std::shared_ptr<cudaDeviceProp> cached_prop;
|
||||
|
||||
// cuBLASLt utils
|
||||
static constexpr size_t kCublasLtWorkspaceSize = 32 * 1024 * 1024;
|
||||
cublasLtHandle_t cublaslt_handle{};
|
||||
std::shared_ptr<torch::Tensor> cublaslt_workspace;
|
||||
int compile_mode = 0;
|
||||
|
||||
// cuBLASLt utils
|
||||
static constexpr size_t kCublasLtWorkspaceSize = 32 * 1024 * 1024;
|
||||
@@ -77,6 +73,15 @@ public:
|
||||
return num_sms;
|
||||
}
|
||||
|
||||
void set_compile_mode(const int& new_compile_mode) {
|
||||
DG_HOST_ASSERT(0 <= new_compile_mode and new_compile_mode <= 1);
|
||||
compile_mode = new_compile_mode;
|
||||
}
|
||||
|
||||
int get_compile_mode() {
|
||||
return compile_mode;
|
||||
}
|
||||
|
||||
void set_tc_util(const int& new_tc_util) {
|
||||
DG_HOST_ASSERT(0 <= new_tc_util and new_tc_util <= 100);
|
||||
tc_util = new_tc_util;
|
||||
|
||||
Reference in New Issue
Block a user