Skip to content

Commit 6cbb924

Browse files
malfetfacebook-github-bot
authored andcommitted
Better THGeneric.h generation rules in bazel (pytorch#41285)
Summary: It doesn't do a good job of checking BLAS library capabilities, so hardcode the undef of BLAS_F2C Pull Request resolved: pytorch#41285 Differential Revision: D22489781 Pulled By: malfet fbshipit-source-id: 13a14f31e08d7f9ded49731e4fd23663bac75cd2
1 parent 67f5d68 commit 6cbb924

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

BUILD.bazel

+4-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,10 @@ template_rule(
566566
src = "aten/src/TH/THGeneral.h.in",
567567
out = "aten/src/TH/THGeneral.h",
568568
substitutions = {
569-
"cmakedefine": "define",
569+
"#cmakedefine USE_BLAS": "#define USE_BLAS",
570+
"#cmakedefine USE_LAPACK": "#define USE_LAPACK",
571+
"#cmakedefine BLAS_F2C": "/* #undef BLAS_F2C */",
572+
"#cmakedefine BLAS_USE_CBLAS_DOT": "#define BLAS_USE_CBLAS_DOT",
570573
},
571574
)
572575

0 commit comments

Comments
 (0)