Преглед на файлове

Document that Magma tinkers with the cublas streams

Samuel Thibault преди 10 години
родител
ревизия
355b2ce4b9
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      doc/doxygen/chapters/05check_list_performance.doxy

+ 5 - 1
doc/doxygen/chapters/05check_list_performance.doxy

@@ -55,7 +55,11 @@ cudaStreamSynchronize(starpu_cuda_get_local_stream());
 Unfortunately, some CUDA libraries do not have stream variants of
 kernels. That will lower the potential for overlapping.
 
-StarPU already does appropriate calls for the CUBLAS library.
+Calling starpu_cublas_init() makes StarPU already do appropriate calls for the
+CUBLAS library. Some libraries like Magma may however change the current stream,
+one then has to call cublasSetKernelStream(starpu_cuda_get_local_stream()); at
+the beginning of the codelet to make sure that CUBLAS is really using the proper
+stream.
 
 If the kernel can be made to only use this local stream or other self-allocated
 streams, i.e. the whole kernel submission can be made asynchronous, then