Community
cancel
Showing results for 
Search instead for 
Did you mean: 
zgzg2020
Beginner
129 Views

Where do I type "export LD_LIBRARY_PATH=..." so I can use VTPause/VTResume?

Jump to solution
Hi,
I want to measure the performance Speedup to come changes I have done to my program. I want a simple but a reliable method. I have just found VTPause/VTResume, and thought they will be up for the job.
I am following this to setup up my program. However, I couldn't understand where exactly do I type in
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install-dir>/gcc-3.2/lib32:<install-dir>/analyzer/bin:<install-dir>/shared/bin". I am using Visual Studio to compile my project.
I have looked everwhere on the net, including MSDN, to find where to type in "exported" libraries...etc. But, I couldn't find anything...
Please help.
0 Kudos
1 Solution
Peter_W_Intel
Employee
129 Views
You are working on Visual Studio* but LD_LIBRARY_PATH is for Linux*, I got confused. You only need tocompile code withVTune Analyzer include files and link its library files. Please refer to old article - http://cache-www.intel.com/cd/00/00/21/93/219345_sampling_vtune.pdf, page 8.

Hope it helps.

Regards, Peter

View solution in original post

4 Replies
zgzg2020
Beginner
129 Views
Quoting - zgzg2020
Hi,
I want to measure the performance Speedup to come changes I have done to my program. I want a simple but a reliable method. I have just found VTPause/VTResume, and thought they will be up for the job.
I am following this to setup up my program. However, I couldn't understand where exactly do I type in
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install-dir>/gcc-3.2/lib32:<install-dir>/analyzer/bin:<install-dir>/shared/bin". I am using Visual Studio to compile my project.
I have looked everwhere on the net, including MSDN, to find where to type in "exported" libraries...etc. But, I couldn't find anything...
Please help.

I'm not sure, but I think that that line is not a necessary one. After getting frustrated for not finding info on how to that line into Visual Studio, I decided to run sampling without entering that line. And, it worked. I created a small project:

[cpp]void main()
{
	VTPause();
	A crp1, crp2;
	for( long int i = 0; i < 999999; i++ )
		dCrp();
	VTResume();
	dNoResume();
}[/cpp]

And, the sampling was taken only for the dNoResume() function and not for the dCrp() function. So, I figure that means it worked.
zgzg2020
Beginner
129 Views
Quoting - zgzg2020

I'm not sure, but I think that that line is not a necessary one. After getting frustrated for not finding info on how to that line into Visual Studio, I decided to run sampling without entering that line. And, it worked. I created a small project:

[cpp]void main()
{
VTPause();
A crp1, crp2;
for( long int i = 0; i < 999999; i++ )
dCrp();
VTResume();
dNoResume();
}[/cpp]

And, the sampling was taken only for the dNoResume() function and not for the dCrp() function. So, I figure that means it worked.

I forgot to mention that I included the Vtune library file into the additional liked libraries.
Peter_W_Intel
Employee
130 Views
You are working on Visual Studio* but LD_LIBRARY_PATH is for Linux*, I got confused. You only need tocompile code withVTune Analyzer include files and link its library files. Please refer to old article - http://cache-www.intel.com/cd/00/00/21/93/219345_sampling_vtune.pdf, page 8.

Hope it helps.

Regards, Peter

View solution in original post

zgzg2020
Beginner
129 Views
You are working on Visual Studio* but LD_LIBRARY_PATH is for Linux*, I got confused. You only need tocompile code withVTune Analyzer include files and link its library files. Please refer to old article - http://cache-www.intel.com/cd/00/00/21/93/219345_sampling_vtune.pdf, page 8.

Hope it helps.

Regards, Peter

It helped a lot! Thanx!

I'm using windows, by the way.
Reply