This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __APPLE__ | |
#include <OpenCL/cl.h> | |
#else | |
#include <CL/cl.h> | |
#endif | |
#include <streamexecutor/StreamExecutor.h> | |
#include <vector> | |
#define CHECK_OCL(Op, Err) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define __CL_ENABLE_EXCEPTIONS | |
#include <CL/cl.hpp> | |
#include <iostream> | |
using namespace std; | |
const char *SOURCE = R"RAW( | |
#define local_barrier() barrier(CLK_LOCAL_MEM_FENCE); | |
#define WITHIN_KERNEL /* empty */ | |
#define KERNEL __kernel |
NewerOlder