54
54
#ifdef __DPCT_HPP__
55
55
static const char *_cudaGetErrorEnum (dpct::err0 error) {
56
56
/*
57
- DPCT1009:5 : SYCL uses exceptions to report errors and does not use the error
57
+ DPCT1009:4 : SYCL uses exceptions to report errors and does not use the error
58
58
codes. The original code was commented out and a warning string was inserted.
59
59
You need to rewrite this code.
60
60
*/
@@ -602,7 +602,7 @@ void check(T result, char const *const func, const char *const file,
602
602
inline void __getLastCudaError (const char *errorMessage, const char *file,
603
603
const int line) {
604
604
/*
605
- DPCT1010:6 : SYCL uses exceptions to report errors and does not use the error
605
+ DPCT1010:5 : SYCL uses exceptions to report errors and does not use the error
606
606
codes. The call was replaced with 0. You need to rewrite this code.
607
607
*/
608
608
dpct::err0 err = 0 ;
@@ -615,7 +615,7 @@ inline void __getLastCudaError(const char *errorMessage, const char *file,
615
615
inline void __printLastCudaError (const char *errorMessage, const char *file,
616
616
const int line) {
617
617
/*
618
- DPCT1010:8 : SYCL uses exceptions to report errors and does not use the error
618
+ DPCT1010:7 : SYCL uses exceptions to report errors and does not use the error
619
619
codes. The call was replaced with 0. You need to rewrite this code.
620
620
*/
621
621
dpct::err0 err = 0 ;
@@ -636,7 +636,7 @@ inline int ftoi(float value) {
636
636
inline int _ConvertSMVer2Cores (int major, int minor) {
637
637
// Defines for GPU Architecture types (using the SM version to determine
638
638
// the # of cores per SM
639
- typedef struct dpct_type_148198 {
639
+ typedef struct dpct_type_146989 {
640
640
int SM; // 0xMm (hexidecimal notation), M = SM Major version,
641
641
// and m = SM minor version
642
642
int Cores;
@@ -685,7 +685,7 @@ inline int _ConvertSMVer2Cores(int major, int minor) {
685
685
inline const char * _ConvertSMVer2ArchName (int major, int minor) {
686
686
// Defines for GPU Architecture types (using the SM version to determine
687
687
// the GPU Arch name)
688
- typedef struct dpct_type_135042 {
688
+ typedef struct dpct_type_101439 {
689
689
int SM; // 0xMm (hexidecimal notation), M = SM Major version,
690
690
// and m = SM minor version
691
691
const char * name;
@@ -737,7 +737,7 @@ inline const char* _ConvertSMVer2ArchName(int major, int minor) {
737
737
inline int gpuDeviceInit (int devID) {
738
738
int device_count;
739
739
/*
740
- DPCT1003:10 : Migrated API does not return error code. (*, 0) is inserted. You
740
+ DPCT1003:9 : Migrated API does not return error code. (*, 0) is inserted. You
741
741
may need to rewrite this code.
742
742
*/
743
743
checkCudaErrors ((device_count = dpct::dev_mgr::instance ().device_count (), 0 ));
@@ -767,7 +767,7 @@ inline int gpuDeviceInit(int devID) {
767
767
768
768
int computeMode = -1 , major = 0 , minor = 0 ;
769
769
/*
770
- DPCT1035:11 : All SYCL devices can be used by the host to submit tasks. You may
770
+ DPCT1035:10 : All SYCL devices can be used by the host to submit tasks. You may
771
771
need to adjust this code.
772
772
*/
773
773
checkCudaErrors ((computeMode = 1 , 0 ));
@@ -778,7 +778,7 @@ inline int gpuDeviceInit(int devID) {
778
778
(minor = dpct::dev_mgr::instance ().get_device (devID).get_minor_version (),
779
779
0 ));
780
780
/*
781
- DPCT1035:12 : All SYCL devices can be used by the host to submit tasks. You may
781
+ DPCT1035:11 : All SYCL devices can be used by the host to submit tasks. You may
782
782
need to adjust this code.
783
783
*/
784
784
if (computeMode == 0 ) {
@@ -794,11 +794,11 @@ inline int gpuDeviceInit(int devID) {
794
794
}
795
795
796
796
/*
797
- DPCT1093:13 : The "devID" device may be not the one intended for use. Adjust
797
+ DPCT1093:12 : The "devID" device may be not the one intended for use. Adjust
798
798
the selected device if needed.
799
799
*/
800
800
/*
801
- DPCT1003:14 : Migrated API does not return error code. (*, 0) is inserted. You
801
+ DPCT1003:13 : Migrated API does not return error code. (*, 0) is inserted. You
802
802
may need to rewrite this code.
803
803
*/
804
804
checkCudaErrors ((dpct::select_device (devID), 0 ));
@@ -816,7 +816,7 @@ inline int gpuGetMaxGflopsDeviceId() try {
816
816
817
817
uint64_t max_compute_perf = 0 ;
818
818
/*
819
- DPCT1003:15 : Migrated API does not return error code. (*, 0) is inserted. You
819
+ DPCT1003:14 : Migrated API does not return error code. (*, 0) is inserted. You
820
820
may need to rewrite this code.
821
821
*/
822
822
checkCudaErrors ((device_count = dpct::dev_mgr::instance ().device_count (), 0 ));
@@ -834,7 +834,7 @@ inline int gpuGetMaxGflopsDeviceId() try {
834
834
while (current_device < device_count) {
835
835
int computeMode = -1 , major = 0 , minor = 0 ;
836
836
/*
837
- DPCT1035:16 : All SYCL devices can be used by the host to submit tasks. You
837
+ DPCT1035:15 : All SYCL devices can be used by the host to submit tasks. You
838
838
may need to adjust this code.
839
839
*/
840
840
checkCudaErrors ((computeMode = 1 , 0 ));
@@ -850,7 +850,7 @@ inline int gpuGetMaxGflopsDeviceId() try {
850
850
// If this GPU is not running on Compute Mode prohibited,
851
851
// then we can add it to the list
852
852
/*
853
- DPCT1035:17 : All SYCL devices can be used by the host to submit tasks. You
853
+ DPCT1035:16 : All SYCL devices can be used by the host to submit tasks. You
854
854
may need to adjust this code.
855
855
*/
856
856
if (computeMode != 0 ) {
@@ -921,11 +921,11 @@ inline int findCudaDevice(int argc, const char **argv) {
921
921
// Otherwise pick the device with highest Gflops/s
922
922
devID = gpuGetMaxGflopsDeviceId ();
923
923
/*
924
- DPCT1093:18 : The "devID" device may be not the one intended for use. Adjust
924
+ DPCT1093:17 : The "devID" device may be not the one intended for use. Adjust
925
925
the selected device if needed.
926
926
*/
927
927
/*
928
- DPCT1003:19 : Migrated API does not return error code. (*, 0) is inserted.
928
+ DPCT1003:18 : Migrated API does not return error code. (*, 0) is inserted.
929
929
You may need to rewrite this code.
930
930
*/
931
931
checkCudaErrors ((dpct::select_device (devID), 0 ));
@@ -950,7 +950,7 @@ inline int findIntegratedGPU() {
950
950
int devices_prohibited = 0 ;
951
951
952
952
/*
953
- DPCT1003:20 : Migrated API does not return error code. (*, 0) is inserted. You
953
+ DPCT1003:19 : Migrated API does not return error code. (*, 0) is inserted. You
954
954
may need to rewrite this code.
955
955
*/
956
956
checkCudaErrors ((device_count = dpct::dev_mgr::instance ().device_count (), 0 ));
@@ -964,7 +964,7 @@ inline int findIntegratedGPU() {
964
964
while (current_device < device_count) {
965
965
int computeMode = -1 , integrated = -1 ;
966
966
/*
967
- DPCT1035:21 : All SYCL devices can be used by the host to submit tasks. You
967
+ DPCT1035:20 : All SYCL devices can be used by the host to submit tasks. You
968
968
may need to adjust this code.
969
969
*/
970
970
checkCudaErrors ((computeMode = 1 , 0 ));
@@ -975,16 +975,16 @@ inline int findIntegratedGPU() {
975
975
// If GPU is integrated and is not running on Compute Mode prohibited,
976
976
// then cuda can map to GLES resource
977
977
/*
978
- DPCT1035:22 : All SYCL devices can be used by the host to submit tasks. You
978
+ DPCT1035:21 : All SYCL devices can be used by the host to submit tasks. You
979
979
may need to adjust this code.
980
980
*/
981
981
if (integrated && (computeMode != 0 )) {
982
982
/*
983
- DPCT1093:23 : The "current_device" device may be not the one intended for
983
+ DPCT1093:22 : The "current_device" device may be not the one intended for
984
984
use. Adjust the selected device if needed.
985
985
*/
986
986
/*
987
- DPCT1003:24 : Migrated API does not return error code. (*, 0) is inserted.
987
+ DPCT1003:23 : Migrated API does not return error code. (*, 0) is inserted.
988
988
You may need to rewrite this code.
989
989
*/
990
990
checkCudaErrors ((dpct::select_device (current_device), 0 ));
0 commit comments