Last active
September 6, 2022 12:35
-
-
Save al42and/2c21e842702f45b9be44d793a77a7d69 to your computer and use it in GitHub Desktop.
Set of files to test https://github.com/illuhad/hipSYCL/pull/824
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
project(HipSyclTest) | |
cmake_minimum_required(VERSION 3.0) | |
set(HIPSYCL_SYCLCC_EXTRA_ARGS -DCOMMON_DEFINE=1) | |
set(HIPSYCL_SYCLCC_EXTRA_ARGS_DEVICE_ONLY -DGPU_DEFINE=1 -ffast-math) | |
find_package(hipsycl REQUIRED) | |
add_executable(HipSyclTest main.cpp module_cpu.cpp module_gpu.cpp) | |
add_sycl_to_target(TARGET HipSyclTest SOURCES module_gpu.cpp) |
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
int main() {} |
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
#if !defined(__HIPSYCL__) | |
# error "__HIPSYCL__ macro not defined. Please check your hipSYCL installation." | |
#endif | |
#if defined(GPU_DEFINE) | |
# error "GPU_DEFINE set in a CPU file" | |
#endif | |
#if !defined(COMMON_DEFINE) | |
# error "COMMON_DEFINE not set in a CPU file" | |
#endif |
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
#if !defined(__HIPSYCL__) | |
# error "__HIPSYCL__ macro not defined. Please check your hipSYCL installation." | |
#endif | |
#if !defined(GPU_DEFINE) | |
# error "GPU_DEFINE not set in a GPU file" | |
#endif | |
#if !defined(COMMON_DEFINE) | |
# error "COMMON_DEFINE not set in a GPU file" | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment