Can't add file containing kernel to xcode

  • Thread starter jmckennon
  • Start date
  • #1
42
0

Main Question or Discussion Point

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.
 

Answers and Replies

Related Threads on Can't add file containing kernel to xcode

  • Last Post
Replies
12
Views
8K
Replies
4
Views
3K
  • Last Post
Replies
1
Views
2K
Replies
4
Views
2K
  • Last Post
Replies
2
Views
896
Replies
5
Views
811
Replies
5
Views
2K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
4K
Top