<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Parallel computing | Psyops Prime</title>
	<atom:link href="https://psyopsprime.com/tag/parallel-computing/feed/" rel="self" type="application/rss+xml" />
	<link>https://psyopsprime.com</link>
	<description>An Idea Log</description>
	<lastBuildDate>Thu, 19 Jul 2018 20:29:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<creativeCommons:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</creativeCommons:license>
<site xmlns="com-wordpress:feed-additions:1">99640787</site>	<item>
		<title>Struct Contents Reference From a Non-Struct Array Object</title>
		<link>https://psyopsprime.com/technology/struct-contents-reference-from-a-non-struct-array-object/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=struct-contents-reference-from-a-non-struct-array-object</link>
					<comments>https://psyopsprime.com/technology/struct-contents-reference-from-a-non-struct-array-object/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 19 Jul 2018 20:26:27 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Matlab]]></category>
		<category><![CDATA[Parallel computing]]></category>
		<guid isPermaLink="false">http://psyopsprime.com/?p=1887</guid>

					<description><![CDATA[<p>I had to get in touch with Mathworks viz a viz a problem concerning the passing of a Java object to various workers of the</p>
The post <a href="https://psyopsprime.com/technology/struct-contents-reference-from-a-non-struct-array-object/">Struct Contents Reference From a Non-Struct Array Object</a> first appeared on <a href="https://psyopsprime.com">Psyops Prime</a>.]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">I had to get in touch with Mathworks viz a viz a problem concerning the passing of a Java object to various workers of the parallel computing toolbox of Matlab. I got the following answer from the support. I am sure someone is going to encounter the same problem and might need help. Please peruse.</p>
<p style="text-align: justify;">Hello Muhammad Adil,</p>
<p>I am Preethi and I am writing in reference to your Technical Support Case #03167864 regarding &#8216;Struct contents reference from a non-struct array object.&#8217;.</p>
<p>I understand that you are seeing an error when trying to call a function of a serialized Java Object in parfor loop<br />
One of the possible reasons would be that the Java class is added in the dynamic java classpath. The workers are not able to access the dynamic java classpath since it is specific to that session of MATLAB, and all the workers run on different MATLAB processes. Use one of the following two workarounds to make this work:</p>
<p>1) Please add the java class to the &#8220;static&#8221; java class path. Instructions on how to do this can be found in the following documentation link:<br />
<a href="http://www.mathworks.com/help/matlab/matlab_external/bringing-java-classes-and-methods-into-matlab-workspace.html#f4867" target="_blank" rel="noopener">http://www.mathworks.com/help/matlab/matlab_external/bringing-java-classes-and-methods-into-matlab-workspace.html#f4867</a> &lt;<a href="http://www.mathworks.com/help/matlab/matlab_external/bringing-java-classes-and-methods-into-matlab-workspace.html#f4867" target="_blank" rel="noopener">http://www.mathworks.com/help/matlab/matlab_external/bringing-java-classes-and-methods-into-matlab-workspace.html#f4867</a>&gt;</p>
<p>This will make sure that all MATLAB processes will have access to the same java class path.</p>
<p>2) The &#8220;javaaddpath&#8221; function to add entries to the dynamic Java class path can be executed on all the workers using the &#8220;pctRunOnAll&#8221; command as follows:</p>
<blockquote><p>
  &gt;pctRunOnAll javaaddpath(&#8216;path&#8217;) %Replace &#8216;path&#8217; with the appropriate path
</p></blockquote>
<p>Please make sure that the parallel pool is running before running this command.<br />
I believe this will help in resolving the issue you are facing. I am thus marking this case as closed for now. If the issue persists, please feel free to reply to this email and I will be happy to reopen the case and help you further.</p>
<p>Please preserve the Reference ID in further correspondence on this query. This allows our systems to automatically associate your reply to the appropriate Case.</p>
<p>Sincerely,<br />
Preethi Ayyamperumal<br />
MathWorks Technical Support</p>
<p>Self-Service: <a href="https://www.mathworks.com/support/contact_us.html" target="_blank" rel="noopener">https://www.mathworks.com/support/contact_us.html</a><br />
File Exchange and MATLAB Answers: <a href="http://www.mathworks.com/matlabcentral/" target="_blank" rel="noopener">http://www.mathworks.com/matlabcentral/</a></p>
<p><small><a style="text-decoration: none;" title="Image inserted by the ImageInject WordPress plugin" href="http://wpinject.com/" rel="nofollow">Photo</a> by <a href="http://www.flickr.com/photos/80476901@N00/1813995615" target="_blank" rel="noopener">ZapTheDingbat</a> <a title="Attribution License" href="http://creativecommons.org/licenses/by/2.0/" target="_blank" rel="nofollow noopener"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/psyopsprime.com/wp-content/plugins/wp-inject/images/cc.png?w=750" /></a></small></p>The post <a href="https://psyopsprime.com/technology/struct-contents-reference-from-a-non-struct-array-object/">Struct Contents Reference From a Non-Struct Array Object</a> first appeared on <a href="https://psyopsprime.com">Psyops Prime</a>.]]></content:encoded>
					
					<wfw:commentRss>https://psyopsprime.com/technology/struct-contents-reference-from-a-non-struct-array-object/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
				<creativeCommons:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</creativeCommons:license>
<post-id xmlns="com-wordpress:feed-additions:1">1887</post-id>	</item>
	</channel>
</rss>
