File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
# ########################################################################
16
16
17
+ find_package (PythonInterp REQUIRED )
17
18
18
19
19
20
@@ -202,7 +203,7 @@ set( AUTOGEMM_PRECOMPILE_HEADER_SRC ${CMAKE_SOURCE_DIR}/library/blas/AutoGemm/Ke
202
203
set ( AUTOGEMM_PRECOMPILE_HEADER_OUT ${CMAKE_BINARY_DIR} /include/AutoGemmIncludes/AutoGemmKernelsToPreCompile.h )
203
204
add_custom_command (
204
205
OUTPUT ${AUTOGEMM_PRECOMPILE_HEADER_OUT}
205
- COMMAND python ${CMAKE_SOURCE_DIR} /library/blas/AutoGemm/KernelsToPreCompile.py ${AGPC_ARGS}
206
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR} /library/blas/AutoGemm/KernelsToPreCompile.py ${AGPC_ARGS}
206
207
DEPENDS ${AUTOGEMM_PRECOMPILE_HEADER_SRC}
207
208
)
208
209
@@ -243,7 +244,7 @@ endif()#endif precompile active
243
244
################################################################################
244
245
add_custom_command (
245
246
OUTPUT ${AUTOGEMM_HEADERS} ${AUTOGEMM_SRC}
246
- COMMAND python ${CMAKE_SOURCE_DIR} /library/blas/AutoGemm/AutoGemm.py --output-path ${CMAKE_BINARY_DIR} /include --opencl-compiler-version ${OPENCL_VERSION} --architecture ${AUTOGEMM_ARCHITECTURE}
247
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR} /library/blas/AutoGemm/AutoGemm.py --output-path ${CMAKE_BINARY_DIR} /include --opencl-compiler-version ${OPENCL_VERSION} --architecture ${AUTOGEMM_ARCHITECTURE}
247
248
DEPENDS ${AUTOGEMM_SCRIPTS}
248
249
)
249
250
You can’t perform that action at this time.
0 commit comments