<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://51.250.0.107/w/index.php?action=history&amp;feed=atom&amp;title=Cuda_stream_synchronize</id>
	<title>Cuda stream synchronize - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://51.250.0.107/w/index.php?action=history&amp;feed=atom&amp;title=Cuda_stream_synchronize"/>
	<link rel="alternate" type="text/html" href="http://51.250.0.107/w/index.php?title=Cuda_stream_synchronize&amp;action=history"/>
	<updated>2026-04-30T18:01:20Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://51.250.0.107/w/index.php?title=Cuda_stream_synchronize&amp;diff=7057&amp;oldid=prev</id>
		<title>Андрей Чусов: Новая страница: «{{DISPLAYTITLE:cuda_stream_synchronize}} {{function begin|void cuda_stream_synchronize(cudaStream_t stream);|{{cuda_stream_synchronize brief}}}} {{function paraml…»</title>
		<link rel="alternate" type="text/html" href="http://51.250.0.107/w/index.php?title=Cuda_stream_synchronize&amp;diff=7057&amp;oldid=prev"/>
		<updated>2018-03-20T06:19:33Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «{{DISPLAYTITLE:cuda_stream_synchronize}} {{function begin|void cuda_stream_synchronize(cudaStream_t stream);|{{cuda_stream_synchronize brief}}}} {{function paraml…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:cuda_stream_synchronize}}&lt;br /&gt;
{{function begin|void cuda_stream_synchronize(cudaStream_t stream);|{{cuda_stream_synchronize brief}}}}&lt;br /&gt;
{{function paramlist begin}}&lt;br /&gt;
{{function paramlist add|stream|Поток CUDA, который необходимо синхронизировать с выполнением на CPU.}}&lt;br /&gt;
{{function paramlist end}}&lt;br /&gt;
{{function exceptionlist begin}}&lt;br /&gt;
{{function exceptionlist add|[[cuda_exception]]|{{cuda_exception brief}}}}&lt;br /&gt;
{{function exceptionlist add|[[cuda_user_exception]]|{{cuda_user_exception brief}}}}&lt;br /&gt;
{{function exceptionlist end}}&lt;br /&gt;
{{function sa begin}}&lt;br /&gt;
{{function sa add|[[cuda_kernel_call]]|{{cuda_kernel_call brief}}}}&lt;br /&gt;
{{function sa add|[[cuda_abort_with_error]]|{{cuda_abort_with_error brief}}}}&lt;br /&gt;
{{function sa end}}&lt;br /&gt;
{{function end}}&lt;br /&gt;
&lt;br /&gt;
Функция предназначена для синхронизации одновременных вызовов ядер CUDA по указанным потокам. Ядра должны быть вызваны с помощью функции [[cuda_kernel_call]], иначе эффект функции [[cuda_stream_synchronize]] не определен.&lt;br /&gt;
&lt;br /&gt;
{{example_begin}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cu&amp;quot;&amp;gt;&lt;br /&gt;
unsigned pVector[100];&lt;br /&gt;
auto pDeviceVector = make_cuda_unique_ptr&amp;lt;unsigned&amp;gt;(sizeof(pVector));&lt;br /&gt;
cuda_kernel_call(my_kernel, 10, 10, 0, stream, true, thread_id, pDeviceVector.get());&lt;br /&gt;
cuda_runtime_call(cudaMemcpyAsync, pVector, pDeviceVector.get(), sizeof(pVector), cudaMemcpyDeviceToHost, stream);&lt;br /&gt;
cuda_stream_synchronize(stream);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
{{example_end}}&lt;/div&gt;</summary>
		<author><name>Андрей Чусов</name></author>
	</entry>
</feed>