Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:52:46+00:00 2026-06-10T19:52:46+00:00

One example program that I am trying to run has the compiling option as

  • 0

One example program that I am trying to run has the compiling option as following from makefile.

ATISTREAMSDKROOT=/home/david/src/ati-stream-sdk-v2.0-lnx64
CC=gcc
CCFLAGS=-O3 -msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall \
    -I$(ATISTREAMSDKROOT)/include -L$(ATISTREAMSDKROOT)/lib/x86_64 -lglut -lOpenCL

But I’m using Nvidia’s OpenCL implementation, so I’m going to change the option to like this.

CC=gcc
CCFLAGS=-O3 -msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall \
    -I ~/NVIDIA_GPU_Computing_SDK/OpenCL/common/inc/ -lglut -lOpenCL

Could you tell me whether it is right or not? BTW, I could not find the correct path for the “-L” option for NVIDIA which corresponds with ATI’s.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:52:47+00:00Added an answer on June 10, 2026 at 7:52 pm

    Somewhat confusingly, NVIDIA’s GPU computing SDK isn’t really an SDK at all, it is just a collection of example programs written in CUDA and OpenCL. It doesn’t contain the necessary headers and libraries required to build and run OpenCL programs (the same applies to CUDA).

    You will find what you are looking for in the NVIDIA GPU computing toolkit, whose release versions contain their OpenCL headers. Your compilation command should probably be something like:

    CCFLAGS=-O3 -msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall \
        -I PATH_TO_NVIDIA_TOOLKIT/include/CL -lglut -lOpenCL
    

    PATH_TO_NVIDIA_TOOLKIT will be /usr/local/cuda if you accept the toolkit installer defaults. The NVIDIA OpenCL libraries ship in their driver package, libOpenCL.so should end up in a default search path and won’t need an explicit search path for the linker to find it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am trying one example from Here for ontouch image zoom and touch on
I'm getting the following from a third party library (one example): @%SystemRoot%\SomePath\SomeFile.Dll,-203 I know
I am trying to write a cross-platform python program that would run in the
I'm trying to create a C++ program that allows me to read from a
I'm trying to write a program that manipulates unicode strings read in from a
I am trying to write one portion of my huge C# program that allows
I am currently learning objective-c from a book. In one example, before the class
I'm cleaning up CSS from a previous designer. The file is messy. One example
I'm trying to create a client-server program that send and receive a string (its
I am trying to get used to web development and one thing that eluded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.