How to build IPP application in Linux environment on news worldwide.

News : AMERICAS : Hi-Tech, Software, Downloads, Hardware, Computers breaking news


search on current category and in current geographical place

CURRENT NEWS ITEM: HOW TO BUILD IPP APPLICATION IN LINUX ENVIRONMENT


How to build IPP application in Linux environment

How to build IPP application in Linux environment

Below we will give an example on how to build an IPP project in Linux within two steps:

Prerequisite:

  • Required Software installed: Intel® IPP library install package: l_ipp_p_x_x.x.xxx.tgz
  • Supported Compiler: gcc, g++ or Intel® C++ Compiler version 9.x for processors with Intel® EM64T (optional).
  •  

    Step 1 – Call Intel® IPP Functions

    Calling Intel IPP functions is as simple as calling any other C functions. Include the relevant header file (ex. ipp.h) and then call the function with correct parameters.

    The example code is as follows:

    #include “ipp.h”

    void main()

    {

    IppiSize roi = {5,4};

    Ipp8u x[8*4] = {0};

    ippiSet_8u_C1R(1, x,8, roi);   //call ippiSet_8u_C1R() function in ipp.h

    }

    Save this file as main.c

     

    Step 2 – Build Intel® IPP Projects

    Build using gcc in command line, we will take Intel IPP 64bit as an example:

    a.         Set environment: $source <ipp install path>/em64t/tools/env/ippvarsem64t.sh

    b.1.      For dynamic link, the command is: $gcc -o main main.c -I <ipp install path>/em64t/include -L <ipp install path>/em64t/sharedlib -lippiem64t -lippcoreem64t –pthread

    b.2.      For static link, the command is: $gcc -o main main.c -I /opt/intel/ipp/6.0.0.045/em64t/include -L /opt/intel/ipp/6.0.0.045/em64t/lib -lippiemergedem64t -lippimergedem64t -lippcoreem64t –pthread

    To see why we link these libraries in the command and to clarify the problem which libraries should be linked for my own project, you can refer to Library dependencies by domain.

    If you build successfully, you can get the generated file: main.

    *note <ipp install path> is the path where your IPP is installed, e.g. /opt/intel/ipp/6.x/

     

    Common error messages

  • Error message: main.c:(.text+0x49): undefined reference to `ippiSet_8u_C1R'
  • Make sure to link all dependant libraries. To solve the problem above, you should check your build command to see if it contains the library, “-lippiem64t”.
  • Make sure to link the libraries in appropriate order. For example, if your command contains both “-lippiemergedem64t” and “-lippimergedem64t”. Make sure to put “-lippiemergedem64t” before “-lippimergedem64t” in command, or you will get this “undefined reference” either.
  •  Error message: /opt/intel/ipp/6.0.0.045/em64t/sharedlib/libiomp5.so: undefined reference to `pthread_atfork'
  • Please make sure to link “–pthread” library in your command line.

     

  • Error message: /opt/intel/ipp/6.0.0.045/em64t/lib/libippiemergedem64t.a(ippi02496as.o): In function `ippiSet_8u_C1R': (.text+0x3): undefined reference to `ippJumpIndexForMergedLibs'
  • If your command line links libraries from <ipp install path>/em64t/lib, please make sure to contain “-lippcoreem64t” library.


Add post to: BlinklistBlogmarksdel.icio.usDiggMa.gnoliaMy Web 2.0NewsvineRedditSegnaloSimpySpurlWistsTechnorati

TOP - 50 RELEVANT BREAKING NEWS

  1. Intel® IPP - How to build an application based on Intel® IPP for Intel® 64 machine

  2. Worcester win will build momentum, says Ruddock

    The Worcester coach, Mike Ruddock, hopes that a victory today against the Italian side Petrarca will launch another all-out assault on the European Challenge Cup. The Warriors reached last season's final, losing 24-16 to Bath at Kingsholm and Worcester, along with Saracens and London Irish, are one of the favourites to ensure the trophy stays in England.

  3. European Commission Publishes: European Research on Environment and Health Funded by the Sixth Framework Programme

    The European Commission's Directorate General for research has published a report entitled: European Research on Environment and Health Funded by the Sixth Framework Programme. The European Union's FP6 funding programme has come to a close and this booklet brings a

  4. Buy-to-let new-build flats see biggest falls

    Buy-to-let landlords who bought new-build flats in Englands major cities have been hardest hit by tumbling house prices

  5. Keidanren Wants Early Application of Int'l Accounting Standards

    The top Japanese business lobby will propose in a report that Japanese companies listed on foreign stock exchanges adopt international accounting standards at an early date, informed sources told Jiji Press on Friday. The Japan Business Federation, also known as

  6. N.B.A. and Partner to Help Build 12 Arenas in China

    The N.B.A. and AEG will announce plans to design and operate at least a dozen arenas in China, extending the league’s presence in its largest foreign market.

  7. NBA and AEG plan to build arenas in China

    The National Basketball Association and its partner were to announce the plan to design and operate at least a dozen arenas in China, extending the league's presence in its largest foreign market.

  8. Saudi prince to build world's tallest building

    Saudi billionaire Prince Al-Waleed bin Talal says he will build the world's tallest building in Jidda.

  9. Surviving the recession with Free Linux distributions (Part 1)

    Times are tough. You're a computer geek and you need to feed your PC with the latest and greatest applications. What's a frugal nerd to do? A group of industry peers was recently asked by a colleague the following question: "If an SMB wants to upgrade from XP, what Linux variants would you recommend?" The first to answer that call among our group was Kenneth Hess, over at DaniWeb, who put together his own "Top 10" list. While it's admirable that Ken did the work, I think his list is flawed because he's mixing both End-User and Enterprise, and his personal biases are evident. In this first of two parts, I'm going to discuss the major flavors of Linux...

  10. NBA in joint venture to build arenas in China

    The NBA has formed a joint venture with Anschutz Entertainment Group to design and develop multipurpose, NBA-style arenas in major Chinese cities.

  11. Playoff Analysis: For Moyers, a Slow Build and a Quick Hook

    Phillies pitcher Jamie Moyer, the second oldest pitcher to start a postseason game, was hit hard by the Dodgers on Sunday, allowing six runs and recording just four outs.

  12. Playoff Analysis: For Moyer, a Slow Build and a Quick Hook

    Phillies pitcher Jamie Moyer, the second oldest pitcher to start a postseason game, was hit hard by the Dodgers on Sunday, allowing six runs and recording just four outs.

  13. Saudi prince to build tallest building

    Read full story for latest details.

  14. At 17, Is Linux Still Wet Behind the Ears?

    It was a big week for our favorite technology last week, as true believers no doubt already know. Not only was Linux 2.6.27 released -- causing no small amount of discussion on Slashdot -- but the operating system itself also turned 17 years old. The Linux Journal article noting that momentous day had already received well more than a thousand Diggs by Friday.

  15. The Linux opportunity buried in the Unix market share data

    Unix got the headline, but the opportunity lies in Linux.

  16. JCB academy to build up Diplomas

    Construction company JCB is to sponsor an academy that will specialise in teaching engineering diplomas.

  17. NSW considers Linux laptops

    NSW secondary school students could be issued with $56 million worth of Linux-based laptops as part of Kevin Rudd's digital education revolution.

  18. Application Compatibility - an overview

    In this video, Kyle Rosenthal discusses some of the challenges with application compatibility and some of the tools that are available to mitigate any issues. He helps to establish an understanding of the application compatibility problem and where to start in the process of evaluating the impact of application compatibility in your deployment project.

  19. SELinux and Security Changes in the 2.6.27 Linux

    James Morris, one of the Red Hat SELinux developers has a blog covering the numerous SELinux related changes and general security improvements made in the new 2.6.27 Linux released recently. It is a impressive amount of changes and there is a large number waiting on queue to go into the next revision as well.

  20. Linux Summit Will Preview New Advanced File System

    Linux Foundation is organizing a end user collaboration summit this week. A major topic will be a presentation on the new upcoming filesystems - Ext4 and Btrfs. Ted Tso, who is a Linux kernel filesystem developer on a sabbatical from IBM working for Linux Foundation for a year, has talked about the two-pronged approach for the Linux kernel, taking a incremental approach with Ext4 while simultaneously working on the next generation filesystem called btrfs. Read more for details.

  21. The true meaning of the environment

    By Bob McDonald, host of the CBC science radio program Quirks & Quarks. Something to think about before you vote: When there is talk of “green space,” there isn’t really a lot of it. First of all the Earth is small as planets go. Most other worlds we know about, including those going around other stars, are huge gas balls like Jupiter. You could put a thousand Earths inside Jupiter. But even though we’re small, this is the only planet we know of that has life on it. Although our human form of life is pretty restricted when it comes to environments we can live in.

  22. Nigeria: Turai, U.S. Agency Partner to Build $40 Million Cancer Center

    First Lady Turai Yar'adua is collaborating with the Africa Cancer Care Inc and the ministry of health to build a $40 million cancer preventive care centre. Turai is expected to flag-off the Walk-A-Thon program taking place at Millennium Park Abuja

  23. South Africa: Competition Gets Learners Thinking About Environment Protection

    By writing essays on how tourism can protect and enhance the environment, South African learners have been encouraged to promote responsible tourism development.

  24. The eternal IT debate: Build or Buy?

    The classic conundrum is IT has always been between building the solution yourself or buying it from someone else. Let's look at some of the common build vs. buy scenarios and see how to make the best decision between them.

  25. ESB to build €500 million power plant in Spain

    ESB, Ireland's state-owned electricity supplier, will build a 500 million-euro power station in Spain as it seeks to reduce its presence in its domestic market.

  26. Russia-Georgia Talks to Build on Cease-Fire Break Down

    Talks between Russia and Georgia to build on the cease-fire that ended their summer war appear to have broken down.

  27. Dofus (Mac/Linux)

    10/15/08 - Defeat your enemies to restore peace in Amakna.

  28. Gazprom says Turkmenistan should build storage capacity to bolster gas export potential

  29. Fujitsu Accelerates Business Change with Comprehensive Application and Service Management Suite

    Tokyo, Oct 16, 2008 - (JCN Newswire) - Fujitsu Limited today announced the worldwide release of Application and Service Management (ASM) Suite of software consisting of the InterstageR Application Development Cycle Manager (ADM), the Interstage Software Quality Analyzer (SQA) and

  30. News release: ConvaTec Selects EDS, an HP Company, to Manage IT Environment

    EDS, an HP company, and global medical device company ConvaTec today announced they have signed a $95 million information technology (IT) services agreement.

  31. Linux: Reboot Like a Racecar with kexec

    Kexec is a feature that allows to boot kernels from a working kernel. It was originally intended for use by kernel and system developers who had to reboot several times a day. Soon, system administrators for high-availability servers found use for it as well. As systems get more and more advanced, and boot times get longer, end users can now benefit from it.

  32. Sydney to build 2 onshore drilling rigs

    A Sydney company has landed a $35-million contract to build two onshore drilling rigs.

  33. Revealed: Using washable nappies best for environment

    Using washable nappies instead of disposables can create 40% less carbon emissions, a new report from the Environment Agency will say today.

  34. Gardening With an Eye to Helping the Environment

    There are many gardening practices you may not have thought about that can make a big difference in the health of the environment. Here are a dozen:

  35. Bailing Out the Environment

    WASHINGTON -- One of my fondest memories from high school is a two-day trek up the majestic slopes of Nevado del Ruiz in Colombia's Andean range. It was my first contact with snow.

  36. 'Buckypaper' may build the future

    It's called "buckypaper" and looks a lot like ordinary carbon paper, but don't be fooled by the cute name or flimsy appearance. It could revolutionize the way everything from airplanes to TVs are made.

  37. Microsoft eyes Oslo as game-changer for application development

    Similar to a mashup, Oslo will help developers assemble applications in Lego block-like fashion, Microsoft says.

  38. Flash Player 10 performing better on Linux, Mac OS

    With the release of Flash Player 10, Adobe has addressed some Linux-specific problems and added features that result in better performance for Linux users.

  39. China to help Pakistan build 2 more power plants

    ISLAMABAD, Pakistan (AP) -- Pakistan's foreign minister says China has signed an agreement with this energy starved Islamic nation to help it build two more nuclear power plants....

  40. Summit tackles human rights, economy, environment

    World leaders convening in Quebec City for the Sommet de la Francophonie will be discussing human rights, the economy and the environment today.

  41. China to help Pakistan build two more power plants

    Pakistan said Saturday that China will help it build two more nuclear power plants, offsetting Pakistani frustration over a recent nuclear deal between archrival India and the United States.

  42. OLPC Releases Fedora 9-Based Linux Distro for the XO

    OLPC (One Laptop Per Child) project originally based on Fedora 7 has done a revamp of its core system to Fedora 9 and added a number of new interesting features and many bug fixes. These include updates on applications on the XO laptop called activities such as home view and journal, new control panel for common system settings, a update system, better backup integration and many others.

  43. 'The Five Best Things in Linux 2.6.27'

    Computer world points out five major new features , you might have missed out in the recent 2.6.27 release. These include briefly, better wireless and webcam support, UBIFS filesytem for embedded devices, Ext4 filesystem with better performance and scalability and increased support for network devices as well.

  44. Linux Foundation announces LSB 4.0 Beta

    Linux Foundation has announced Linux Standard Base 4.0 beta. LSB attempts to provide a consistent Linux platform for ISV's. These are a number of changes. Following Red Hat's efforts to consolidate on NSS, LSB has endorsed it as the cryptography solution as well as providing new distribution tests and tools for certification of third party applications.

  45. China to help build 2 Pakistan nuclear plants

    ISLAMABAD, Pakistan (AP) -- Pakistan said China will help build two more nuclear power plants in the energy-starved Muslim nation, tightening its bonds with Beijing as rising militant violence strains its anti-terror alliance with the United States....



SYNDICATION


Subscribe to our RSS (Really Simple Syndication) feeds to get news delivered directly to your desktop or web-site!


ADVERTISEMENTS



PCT: 0.332 s.