- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Tags:
- CC++
- Debugging
- Development Tools
- Fortran
- Intel® Inspector
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Intel Inspector XE supports TBB memory allocator, it should work without special settings.
Regards,
Kirill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just wrote a simple tbb example, which used scalable_malloc() and forgot to use scalable_free()
[cpp]#include#include #include "tbb/scalable_allocator.h" #define LEN_STR 1024 using namespace tbb; int main() { char *str = (char *)scalable_malloc(LEN_STR*sizeof(char)); strcpy (str, "This is an example to use tbb scalable"); printf ("%sn",str); // Forget to do "scalable_free" return(1); } [/cpp]
#source /opt/intel/composer_xe_2011_sp1.7.256/bin/compilervars.sh intel64
# icpc -g tbb_scalable.cpp -ltbb_debug -ltbbmalloc -o tbb_scalable
# source /opt/intel/inspector_xe_2011/inspxe-vars.sh
Copyright (C) 2009-2011 Intel Corporation. All rights reserved.
Intel Inspector XE 2011 (build 186554)
# inspxe-cl -collect mi3 -module-filter-mode=include -module-filter=tbb_scalable -- ./tbb_scalable
Used suppression file(s): []
This is an example to use tbb scalable
1 new problem(s) found
1 Memory leak problem(s) detected
# inspxe-cl -report problems
Used suppression file(s): []
Problem P1: Error: Memory leak
/home/peter/tbb_scalable.cpp(12): Error X3: P1: Memory leak: Allocation site: Function main: Module /home/peter/tbb_scalable
You can see one memory leak detected, allocation site is at source line #12.
So Inspector XE can detect problem using TBB memory allocators.
Regards, Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you have TBB v4.xinstalled on your system please take a look at
24 test applications in the folderand anytest applicationcan be used with Inspector XE.
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page