Procházet zdrojové kódy

Avoid overriding automake's install/uninstall targets

Samuel Thibault před 4 roky
rodič
revize
7230015047
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 2 2
      starpupy/src/Makefile.am
  2. 1 0
      starpupy/src/starpu_task_wrapper.c

+ 2 - 2
starpupy/src/Makefile.am

@@ -34,7 +34,7 @@ $(top_builddir)/starpupy/src/starpu/%.c: $(abs_top_srcdir)/starpupy/src/%.c
 all: $(PYTHON_PY_BUILD) $(PYTHON_C_BUILD)
 	$(PYTHON) setup.py build $(PYTHON_SETUP_OPTIONS)
 
-install:
+install-exec-local:
 	@if test -d $(prefix)/lib/python* ; \
 	then	\
 		chmod u+w $(prefix)/lib/python* ; \
@@ -51,7 +51,7 @@ endif
 distclean-local:
 	rm -rf build
 
-uninstall:
+uninstall-local:
 	rm -rf $(prefix)/lib/python*/site-packages/starpu*
 	rm -rf $(prefix)/lib/python*/site-packages/tmp/starpu*
 

+ 1 - 0
starpupy/src/starpu_task_wrapper.c

@@ -293,6 +293,7 @@ static PyObject* starpu_task_submit_wrapper(PyObject *self, PyObject *args)
 	/*initialize func_cl with default values*/
 	starpu_codelet_init(func_cl);
 	func_cl->cpu_funcs[0]=&codelet_func;
+	func_cl->cpu_funcs_name[0]="codelet_func";
 
 	/*check whether the option perfmodel is None*/
 	PyObject *dict_option = PyTuple_GetItem(args, PyTuple_Size(args)-1);/*the last argument is the option dictionary*/