Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
41 Views

How to optimize this uPipe diagram?

Look at the attachment. How to optimize this uPipe diagram? 

Tags (1)
0 Kudos
5 Replies
Highlighted
41 Views

It would help if you would show the sections of the code that is giving you this result.

Jim Dempsey

0 Kudos
Highlighted
Beginner
41 Views

jimdempseyatthecove (Blackbelt) wrote:

It would help if you would show the sections of the code that is giving you this result.

Jim Dempsey

Sorry, the code belongs to my company and the code is too long. In a nutshell, the code has much random memory access. I have tried many optimization methods such as prefetch,but all failed. I don't know whether I have inserted the right prefetch position or prefetch size. Maybe you have a better solution.

Thanks for your reply very much. :)

0 Kudos
Highlighted
41 Views

I have found that the hardware pre-fetch capability of modern CPUs makes it in most cases counter-productive to introduce software prefetching.

The better solution is (often) to analyze your algorithms and data placement, and if possible rearrange data and restructure the algorithm (without adversely affecting results) such that the CPU can get more work done per memory fetch. Note, memory is fetched by cache line (or double cache line).

If you are unable to resolve this by yourself, then you can contact me and we can work something out under NDA.

Jim Dempsey

0 Kudos
Highlighted
Beginner
41 Views

jimdempseyatthecove (Blackbelt) wrote:

I have found that the hardware pre-fetch capability of modern CPUs makes it in most cases counter-productive to introduce software prefetching.

The better solution is (often) to analyze your algorithms and data placement, and if possible rearrange data and restructure the algorithm (without adversely affecting results) such that the CPU can get more work done per memory fetch. Note, memory is fetched by cache line (or double cache line).

If you are unable to resolve this by yourself, then you can contact me and we can work something out under NDA.

Jim Dempsey

Yeah, I have optimized my algorithm and data placement as much as possible. Next, I want to use AVX to try to solve the uPipe diagram. Do you think AVX can help? It is my pleasure to be able to communicate with you. What is your contact? We can keep in touch and exchange some problems.

0 Kudos
Highlighted
41 Views

Depending on your code, data organization and optimizations selected, your code may already be using multiple lanes of the AVX registers.

Jim Dempsey

0 Kudos