// SPDX-License-Identifier: MIT // #ifdef __gfx908__ // // Uncomment ifdef and endif only if you need to undef the HIP_HALF ops below // just for gfx908 and not for others // // below lines enable hip float to half conversion which are disabled by // default in hip_fp16.h #undef __HIP_NO_HALF_OPERATORS__ #undef // __HIP_NO_HALF_CONVERSIONS__ #endif #include #include #include #include #include #include #include #include // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // #include "nvToolsExt.h" void hipb_create_extension(); void hipb_destroy_extension(); torch::Tensor hipb_mm(const torch::Tensor &mat1, const torch::Tensor &mat2, const int solution_index, std::optional bias = std::nullopt, std::optional out_dtype = std::nullopt, std::optional scaleA = std::nullopt, std::optional scaleB = std::nullopt, std::optional scaleOut = std::nullopt, std::optional scaleType = std::nullopt); std::vector hipb_findallsols( const torch::Tensor &mat1, const torch::Tensor &mat2, std::optional bias = std::nullopt, std::optional out_dtype = std::nullopt, std::optional scaleA = std::nullopt, std::optional scaleB = std::nullopt, std::optional scaleC = std::nullopt, std::optional scaleType = std::nullopt); std::string getHipblasltKernelName(int solution_index);