Changes between Version 1 and Version 2 of OpenCL_Template
- Timestamp:
- Jan 20, 2011 7:14:43 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenCL_Template
v1 v2 1 = template program = 1 = Template Makefile = 2 {{{ 3 CFLAGS=-Wall -O 4 5 PATH_TO_AMD:=/opt/opencl 6 PATH_TO_AMD_LIB=$(PATH_TO_AMD)/lib/x86_64 7 PATH_TO_AMD_INC=$(PATH_TO_AMD)/include 8 9 EXE_NAME=test.exe 10 11 $(EXE_NAME): temp.cpp 12 g++ $(CFLAGS) -I$(PATH_TO_AMD_INC) -L$(PATH_TO_AMD_LIB) -o $@ $< -lOpenCL 13 14 15 clean: 16 rm -f $(EXE_NAME) 17 }}} 18 19 = Template source program = 2 20 {{{ 3 21 #include <stdio.h>