mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
comment
This commit is contained in:
@@ -7,14 +7,6 @@
|
|||||||
|
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
|
||||||
void check_cublas_error(const char* name, cublasStatus_t err) {
|
|
||||||
if (err != CUBLAS_STATUS_SUCCESS) {
|
|
||||||
// TODO: Use cublasGetStatusString when it is widely available.
|
|
||||||
throw std::runtime_error(
|
|
||||||
fmt::format("{} failed with code: {}.", name, static_cast<int>(err)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace mlx::core::cu {
|
namespace mlx::core::cu {
|
||||||
|
|
||||||
struct CublasPreference {
|
struct CublasPreference {
|
||||||
|
|||||||
@@ -7,10 +7,6 @@
|
|||||||
#include <cublasLt.h>
|
#include <cublasLt.h>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
void check_cublas_error(const char* name, cublasStatus_t err);
|
|
||||||
|
|
||||||
#define CHECK_CUBLAS_ERROR(cmd) check_cublas_error(#cmd, (cmd))
|
|
||||||
|
|
||||||
namespace mlx::core::cu {
|
namespace mlx::core::cu {
|
||||||
class Matmul {
|
class Matmul {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user