Can't add file containing kernel to xcode

  • Thread starter jmckennon
  • Start date
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.
 

Want to reply to this thread?

"Can't add file containing kernel to xcode" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top