Skip to content

Instantly share code, notes, and snippets.

LD_PRELOAD=~/code/research/hpxMP/libopenmp.so /opt/intel/vtune_amplifier_xe_2013/bin64/amplxe-cl -collect hotspots -knob sampling-interval=5 -knob enable-user-tasks=true -mrte-mode=managed -target-duration-type=veryshort -app-working-dir /home/jeremy/intel/amplxe/projects/hpxmp --search-dir sym:p=/home/jeremy/intel/amplxe/projects/hpxmp -- /home/jeremy/intel/amplxe/projects/hpxmp/omp-lu-orig 1000 10
/opt/intel/vtune_amplifier_xe_2013/bin64/amplxe-cl: /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/jeremy/code/research/hpxMP/libopenmp.so)
/opt/intel/vtune_amplifier_xe_2013/bin64/amplxe-cl: /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libstdc++.so.6: version `GLIBCXX_3.4.13' not found (required by /home/jeremy/hpx/lib/hpx/libhpx.so.0)
/opt/intel/vtune_amplifier_xe_2013/bin64/amplxe-cl: /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/jeremy/hpx/lib/hpx/libhpx.so.0)
g++ -fPIC -c hpxMP.cpp -o hpxMP.o `pkg-config --cflags --libs hpx_application`
hpxMP.cpp: In function ‘int __ompc_single(int)’:
hpxMP.cpp:154:5: error: ‘lock_guard’ is not a member of ‘hpx::lcos::local::spinlock’
hpx::lcos::local::spinlock::lock_guard l(single_lock);
^
hpxMP.cpp:154:44: error: expected ‘;’ before ‘l’
hpx::lcos::local::spinlock::lock_guard l(single_lock);
^
hpxMP.cpp: In function ‘void __ompc_end_single(int)’:
hpxMP.cpp:169:5: error: ‘lock_guard’ is not a member of ‘hpx::lcos::local::spinlock’
jeremy@T420:~/code/research/hpxMP$ LD_PRELOAD=./libopenmp.so ../dataflow/lu/omp-lu-orig 1000 10
{env}: 70 entries:
CLUTTER_IM_MODULE=xim
COLORTERM=gnome-terminal
COMPIZ_BIN_PATH=/usr/bin/
COMPIZ_CONFIG_PROFILE=ubuntu
CPLUS_INCLUDE_PATH=/home/jeremy/hpx/include:/home/jeremy/hpxc/include
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wK7Saw29Ao
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
void DataFile::convertFile( int dimension[], string inName, string outName ) {
ifstream input( inName.c_str(), ios::in| ios::binary );
ofstream outputFile;
char *buffer, *fileName;
int z = dimension[0], y = dimension[1], x = dimension[2], sliceSize = z * y;
float ***data = new float**[z];
buffer = new char[4];
fileName = new char[strlen(outName.c_str()) + 100];
if( x > 0 && y > 0 && z > 0 && !input.fail() ) {