Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
christian.convey
Total Points:
30
Registered User
June 19, 2009 11:55 AM PDT
When support Ubuntu 9.04?
I've got a program that runs fine on Ubuntu 9.04 (gcc 4.4), but runs into a race condition when using Ubuntu 8.04, apparently because of a bug in gcc 4.2's STL implementation.

The problem is, vtune doesn't appear to work on Ubuntu 9.04.

Does anyone know when Intel hopes to have Ubuntu 9.04 support for vtune?
Peter Wang (Intel)
Total Points:
8,957
Status Points:
8,457
Brown Belt
June 21, 2009 9:28 PM PDT
Rate
 
#1
I've got a program that runs fine on Ubuntu 9.04 (gcc 4.4), but runs into a race condition when using Ubuntu 8.04, apparently because of a bug in gcc 4.2's STL implementation.

The problem is, vtune doesn't appear to work on Ubuntu 9.04.

Does anyone know when Intel hopes to have Ubuntu 9.04 support for vtune?

I think if you want to detect data race issues, you should use Intel(R) Thread Checker.

Please refer to http://softwarecommunity.intel.com/isn/downloads/softwareproducts/pdfs/300239.pdf to know system's requirements.

Regards, Peter

christian.convey
Total Points:
30
Registered User
June 22, 2009 6:59 AM PDT
Rate
 
#2 Reply to #1

I think if you want to detect data race issues, you should use Intel(R) Thread Checker.

Please refer to http://softwarecommunity.intel.com/isn/downloads/softwareproducts/pdfs/300239.pdf to know system's requirements.

Regards, Peter

Thanks Peter, but I think I was mistaken in two ways.  (1) I misspoke when I said, "race condition".  It was a single-threaded program, and it appeared stuck in an infinite loop inside the a C++ STL method.  So it wasn't a race.  (2) Even after getting GCC 4.4 to run on Ubuntu 8.04, I still encountered the issue.  So now I have some digging to do to figure out why it's *not* an issue on GCC 4.4 + Ubuntu 9.04.

But the more important issue is that VTune looks like it's probably a great tool, but it's over 1 year behind the current Ubuntu release.  I'd really like to try it out, but I don't want to perpetually be deferring operating system upgrades for overa a year just so that one of my tools (VTune) can run.

So I'd like to strongly encourage you guys to get Vtune running on 9.04 as soon as possible, and to keep up with new Ubuntu releases in general.

cngx
Total Points:
20
Registered User
August 17, 2009 6:20 AM PDT
Rate
 
#3 Reply to #2
So I'd like to strongly encourage you guys to get Vtune running on 9.04 as soon as possible, and to keep up with new Ubuntu releases in general.

I second this. I'm stuck with Ubuntu 8.10 right now, dealing with certain annoying bugs and forgoeing software I want to use, just so that I can use Vtune. A colleague of mine is waiting for Intel to release a 9.04 compatible version so he can use the product as well.

Last I heard, Ubuntu was the most popular desktop linux distribution. They do make things difficult by releasing new versions so often, and I sympathize with Intel on this, but is it really that difficult to just work out any issues right when the new version is released? How long does it actually take?



tim18
Total Points:
68,747
Status Points:
68,747
Black Belt
August 17, 2009 9:30 AM PDT
Rate
 
#4 Reply to #3
Ubuntu may be the most often sold linux installed prior to sale by OEMs in certain countries.  I don't know how you could make an assertion broader than that.  As you're no doubt aware, there is a standard for linux interoperability called LSB which Ubuntu chooses not to support, so this makes for difficulties, smaller return for the special effort which has to be invested.  No doubt, Intel software may be tested during development on the version of Ubuntu most often sold pre-installed during the development time period, but that leaves open the possibility of problems should Ubuntu change something afterwards.  There's no good reason why a new major version of Ubuntu should require modification of VTune other than rebuilding the driver; you could ask them which 3rd party applications they intend to allow to operate.
In my slight acquaintance with Ubuntu, installation of 3rd party software is not the only aspect in which its divergence from other operating systems becomes a handicap.



joex26
Total Points:
375
Status Points:
325
Green Belt
October 20, 2009 1:52 AM PDT
Rate
 
#5 Reply to #4
I don't know if often sold, but very often chosen. Because it's simple to maintain.

You are right Tim that they should support the standard but,
the changes are not so critical (I managed to do it myself with the help of the Oracle at some parts of the Earth called Google).
Could you change configuration script for us, Ubuntu users, please?
For us it is easier change the profiler then the system.
But let us try your software, please.

I know it's some time hard to cooperate between big companies but could you do it for us
?
I managed to install VTune yesterday evening but I am also testing some other solutions.
Maybe if the installation would be easier it could be a nice pro to encourage rest of my colleagues to go for it (not the only one but still)

I will post some howto install VTune 9.1 on Ubuntu 9.04 here, later today.


chester_grimmes
Total Points:
90
Status Points:
40
Green Belt
October 20, 2009 10:22 PM PDT
Rate
 
#6 Reply to #5
Quoting - joex26
I don't know if often sold, but very often chosen. Because it's simple to maintain.

You are right Tim that they should support the standard but,
the changes are not so critical (I managed to do it myself with the help of the Oracle at some parts of the Earth called Google).
Could you change configuration script for us, Ubuntu users, please?
For us it is easier change the profiler then the system.
But let us try your software, please.

I know it's some time hard to cooperate between big companies but could you do it for us
?
I managed to install VTune yesterday evening but I am also testing some other solutions.
Maybe if the installation would be easier it could be a nice pro to encourage rest of my colleagues to go for it (not the only one but still)

I will post some howto install VTune 9.1 on Ubuntu 9.04 here, later today.

I managed to install VTune 9.1 on the latest version of Ubuntu. Let me know if you need help.


joex26
Total Points:
375
Status Points:
325
Green Belt
October 22, 2009 5:59 AM PDT
Rate
 
#7 Reply to #6
Thank you. I also managed to install it. I will check if it works correctly and then post consistent howto because I lost some time to install it.
So if you want to contribute feel free to add comments later on. Or if you have already some short article written please post it.


david.joynerspirent.com
Total Points:
40
Registered User
October 27, 2009 2:14 PM PDT
Rate
 
#8 Reply to #6
Quoting - chester_grimmes

I managed to install VTune 9.1 on the latest version of Ubuntu. Let me know if you need help.

The last time I tried to get the kernel module to compile for Ubuntu 9.04 I wasn't successful.  If you were able to make this work I'd like to see a write-up.

Thanks.


joex26
Total Points:
375
Status Points:
325
Green Belt
October 31, 2009 4:50 PM PDT
Rate
 
#9 Reply to #8
This is the copy of the original post by Federico Ficarelli from:
http://www.uluga.ubuntuforums.org/showthread.php?p=8102505

It worked like a charm for me.

How to build the driver for >=2.6.24 :

It seems that 2.6.28 series (or a version greater than 2.6.24 that, according to Intel notes, is the greatest one supported by VTune) lacks ${your kernel source}/include/asm/*.h links to ${kernel source}/arch/${your arch}/include/asm/*.h headers.

Be sure that:
1) the link /lib/modules/$(uname -r)/build points to your kernel sources (if you need them you can run "apt-get install linux-source-2.6.28 && cd /usr/src && tar xjf linux-source-2.6.28.tar.bz2")
2) you have built your sources at least one time to generate some needed files

After 1 and 2, you can run the following as root:

Code:

#!/bin/bash
set_variables()
{
VTUNE_MOD_SRC=/opt/intel/vtune/vdk/src
KERNEL_CUSTOM_VERSION=$(uname -r)
KERNEL_SRC=/lib/modules/${KERNEL_CUSTOM_VERSION}/build
KERNEL_VERSION=$(grep UTS_RELEASE ${KERNEL_SRC}/include/linux/utsrelease.h | cut -f2 -d\")
ARCH=$(readlink ${KERNEL_SRC}/include/asm | cut -f2 -d-)
}

echo "Setting variables..."
set_variables
echo "KERNEL_CUSTOM_VERSION=${KERNEL_CUSTOM_VERSION}"
echo "KERNEL_SRC=${KERNEL_SRC}"
echo "KERNEL_VERSION=${KERNEL_VERSION}"

echo "Creating fixed include/asm link..."
cd ${KERNEL_SRC}/include
rm -f asm
ln -s ../arch/${ARCH}/include/asm asm

echo "Restoring original include/asm files..."
cp ${KERNEL_SRC}/include/asm-${ARCH}/*\.h ${KERNEL_SRC}/include/asm/

echo "Building vtune module..."
cd $VTUNE_MOD_SRC
./build-driver --kernel-version=${KERNEL_VERSION}

echo "Fixing module name..."
module=$(ls *.ko)
ln -s ${module} $(echo ${module} | sed -e "s|${KERNEL_VERSION}|${KERNEL_CUSTOM_VERSION}|")

echo "Done."

This will rebuild the missing links.
PLEASE NOTE THAT THE PREVIOUS CODE WILL MESS UP YOU SOURCES, so be sure to have a backup of the kernel source tree.
This worked like a charm for me, now running VTune.




joex26
Total Points:
375
Status Points:
325
Green Belt
October 31, 2009 4:50 PM PDT
Rate
 
#10 Reply to #8
Please, let me know if that worked also for you.


david.joynerspirent.com
Total Points:
40
Registered User
November 6, 2009 7:30 AM PST
Rate
 
#11 Reply to #10
Quoting - joex26
Please, let me know if that worked also for you.

It worked like a charm.  Thanks much.




Intel Software Network Forums Statistics

8470 users have contributed to 31601 threads and 100646 posts to date.
In the past 24 hours, we have 30 new thread(s) 113 new posts(s), and 159 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 kopernikus