-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCLomatic] Fix missed header file in codpein cuda out-root folder. (#…
…2637) Signed-off-by: Chen, Sheng S <[email protected]>
- Loading branch information
1 parent
e42e3e7
commit d6f19b8
Showing
7 changed files
with
129 additions
and
84 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// RUN: echo | ||
// CHECK: int foo1() { | ||
int foo1() { | ||
return 0; | ||
} |
17 changes: 17 additions & 0 deletions
17
clang/test/dpct/debug_test/copy_file_in_db/compile_commands.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"command": "g++ common/test1.cpp", | ||
"directory": "./", | ||
"file": "./common/test1.cpp" | ||
}, | ||
{ | ||
"command": "g++ test2.cpp", | ||
"directory": "./", | ||
"file": "./test2.cpp" | ||
}, | ||
{ | ||
"command": "nvcc test3.cu", | ||
"directory": "./", | ||
"file": "./test3.cu" | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <cuda_runtime.h> | ||
|
||
// CHECK: /* | ||
// CHECK: DPCT1057:{{[0-9]+}}: Variable float_to_force was used in host code and device code. float_to_force type was updated to be used in SYCL device code and new float_to_force_host_ct1 was generated to be used in host code. You need to update the host code manually to use the new float_to_force_host_ct1. | ||
// CHECK: */ | ||
// CHECK: static const float float_to_force_host_ct1 = (float)(1ll << 40); | ||
// CHECK: static dpct::constant_memory<const float, 0> float_to_force((float)(1ll << 40)); | ||
static __constant__ const float float_to_force = (float)(1ll << 40); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "test.h" | ||
// RUN: echo | ||
int foo2() { | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// RUN: mkdir -p %T/common | ||
// RUN: cd %T | ||
// RUN: cat %S/compile_commands.json > %T/compile_commands.json | ||
// RUN: cat %S/common/test1.cpp > %T/common/test1.cpp | ||
// RUN: cat %S/test2.cpp > %T/test2.cpp | ||
// RUN: cat %S/test3.cu > %T/test3.cu | ||
// RUN: cat %S/test.h > %T/test.h | ||
// RUN: dpct --in-root=%T --out-root=%T/out -p %T --format-range=none --cuda-include-path="%cuda-path/include" --enable-codepin | ||
// RUN: FileCheck %S/common/test1.cpp --match-full-lines --input-file %T/out_codepin_cuda/common/test1.cpp | ||
#include "test.h" | ||
|
||
__global__ void kernel(){ | ||
float a = float_to_force; | ||
} | ||
|
||
int main() { | ||
kernel<<<1, 1>>>(); | ||
return 0; | ||
} |