Skip to content

Commit

Permalink
Use correct complex type for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Dec 7, 2024
1 parent 50fa705 commit 16549d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mlx/backend/common/lapack.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

#pragma once

// Required for Visual Studio.
// https://github.com/OpenMathLib/OpenBLAS/blob/develop/docs/install.md
#ifdef _MSC_VER
#include <complex>
#define LAPACK_COMPLEX_CUSTOM
#define lapack_complex_float std::complex<float>
#define lapack_complex_double std::complex<double>
#endif

#ifdef ACCELERATE_NEW_LAPACK
#include <Accelerate/Accelerate.h>
#else
Expand Down

0 comments on commit 16549d4

Please sign in to comment.