Skip to content

Commit

Permalink
backend/ze: supports new version of ocloc
Browse files Browse the repository at this point in the history
new ocloc adds .bin suffix even though -output_no_suffix is used.

Signed-off-by: Gengbin Zheng <[email protected]>
  • Loading branch information
zhenggb72 committed Apr 5, 2023
1 parent 59acd42 commit 89ebd5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/ze/pup/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if BUILD_ZE_NATIVE
.cl.c:
@echo " OCLOC (native) $<" ; \
ocloc compile -file $< -device $(ze_native_TARGET) -out_dir `dirname $@` -output_no_suffix -q -options "-I $(top_srcdir)/src/backend/ze/include -cl-std=CL2.0" @extra_ocloc_options@ && \
mv $(@:.c=) $(@:.c=.bin) && /bin/rm -f $(@:.c=.gen) && \
(test -f $(@:.c=) && mv $(@:.c=) $(@:.c=.bin) || true) && /bin/rm -f $(@:.c=.gen) && \
$(top_srcdir)/src/backend/ze/pup/inline.py $(@:.c=.bin) $@ $(top_srcdir) 1

else
Expand Down

0 comments on commit 89ebd5f

Please sign in to comment.