File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -128,15 +128,15 @@ elseif(BUILD_MPS)
128
128
string (APPEND BNB_OUTPUT_NAME "_mps" )
129
129
add_compile_definitions (BUILD_MPS)
130
130
file (MAKE_DIRECTORY "build" )
131
- add_custom_command (OUTPUT "bitsandbytes/bitsandbytes.metallib"
132
- COMMAND xcrun metal -c -o "build/ bitsandbytes.air" ${ METAL_FILES}
133
- COMMAND xcrun metallib "build/ bitsandbytes.air" -o "bitsandbytes/bitsandbytes.metallib"
131
+ add_custom_command (OUTPUT "${CMAKE_SOURCE_DIR} / bitsandbytes/bitsandbytes.metallib"
132
+ COMMAND xcrun metal -c -o "bitsandbytes.air" " ${CMAKE_SOURCE_DIR} / ${ METAL_FILES}"
133
+ COMMAND xcrun metallib "bitsandbytes.air" -o "${CMAKE_SOURCE_DIR} / bitsandbytes/bitsandbytes.metallib"
134
134
DEPENDS "${METAL_FILES} "
135
135
COMMENT "Compiling Metal kernels"
136
136
VERBATIM )
137
- add_custom_target (metallib DEPENDS "bitsandbytes/bitsandbytes.metallib" )
137
+ add_custom_target (metallib DEPENDS "${CMAKE_SOURCE_DIR} / bitsandbytes/bitsandbytes.metallib" )
138
138
else ()
139
- set (LIBSUFFIX "cpu " )
139
+ string ( APPEND BNB_OUTPUT_NAME "_cpu " )
140
140
set (GPU_SOURCES)
141
141
endif ()
142
142
You can’t perform that action at this time.
0 commit comments