Array constructor

tim18
Total Points:
68,907
Status Points:
68,907
Black Belt
July 18, 2009 2:16 PM PDT
Rate
 
#3 Reply to #2
For me, it fails consistently when compiled with debug symbols, no optimization, as recommended for thread checker.  It seems it may use a shared temporary in the array constructor. 
If there is a race in the non-optimized implementation of the array constructor, depending on optimization to keep the values in register and avoid a race may produce results which depend on your compiler version.
With a current compiler, with optimization, instead of a race condition, Thread Checker complains about closing of a synchronization object at the final deallocate.  This doesn't make much sense to me, particularly as that deallocation would be performed implicitly at the end of the subroutine in any case.


Intel Software Network Forums Statistics

8487 users have contributed to 31625 threads and 100705 posts to date.
In the past 24 hours, we have 36 new thread(s) 120 new posts(s), and 186 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member chat1983