Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Can't add file containing kernel to xcode

  1. Oct 6, 2009 #1
    Hi. I'm writing a program in OpenCL but I'm very new to xcode. Basically, my program executes a kernel that exists in a separate file. I'm not sure if the code is completely correct, but the program won't build and when I do try to build it I get this error :

    Build GPU translate of project GPU translate with configuration Debug

    Check dependencies

    [WARN]warning: no rule to process file '$(PROJECT_DIR)/OpenCLSourceCalc.cl' of type sourcecode.opencl for architecture x86_64

    Undefined symbols:
    "_clsetKernelArg", referenced from:
    _sourceCalc in gputranslate.o
    _sourceCalc in gputranslate.o
    "_load_program_source", referenced from:
    _sourceCalc in gputranslate.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    I have no idea what this means, but my assumption is that the file wasn't added properly to the project or something. All I did was go to File->New File->C File and I changed the extension from ".c" to ".cl" Did I do this wrong? I can provide my code if needed.
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted