opencl_ruby_ffi 0.991 → 0.992

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -190,7 +190,7 @@ module OpenCL
190
190
  def self.create_program_with_source(context, strings)
191
191
  strs = nil
192
192
  if not strings then
193
- raise OpenCL::Error::new(OpenCL::Error.getErrorString(OpenCL::Error::INVALID_VALUE))
193
+ OpenCL.error_check(OpenCL::INVALID_VALUE)
194
194
  else
195
195
  strs = [strings].flatten
196
196
  end
@@ -204,7 +204,7 @@ module OpenCL
204
204
  c_strs_p.push (FFI::MemoryPointer.from_string(str))
205
205
  end
206
206
  }
207
- raise OpenCL::Error::new(OpenCL::Error.getErrorString(OpenCL::Error::INVALID_VALUE)) if c_strs_p.size == 0
207
+ OpenCL.error_check(OpenCL::INVALID_VALUE) if c_strs_p.size == 0
208
208
 
209
209
  c_strs = FFI::MemoryPointer::new( :pointer, c_strs_p.size )
210
210
  c_strs_length = FFI::MemoryPointer::new( :size_t, c_strs_p.size )
@@ -39,7 +39,7 @@ module OpenCL
39
39
  alignment = 0
40
40
  alignment = options[:alignment] if options[:alignment]
41
41
  ptr = OpenCL.clSVMAlloc( context, flags, size, alignment )
42
- raise OpenCL::Error::new(OpenCL::Error.getErrorString(OpenCL::Error::MEM_OBJECT_ALLOCATION_FAILURE)) if ptr.null?
42
+ OpenCL.error_check(OpenCL::MEM_OBJECT_ALLOCATION_FAILURE) if ptr.null?
43
43
  return OpenCL::SVMPointer::new( ptr, context )
44
44
  end
45
45
 
@@ -134,7 +134,7 @@ module OpenCL
134
134
  :image_slice_pitch, :size_t,
135
135
  :num_mip_levels, :cl_uint,
136
136
  :num_samples, :cl_uint,
137
- :buffer, :pointer
137
+ :buffer, OpenCL::Mem.ptr
138
138
 
139
139
  # Creates anew ImageDesc using the values provided by the user
140
140
  def initialize( image_type, image_width, image_height, image_depth, image_array_size, image_row_pitch, image_slice_pitch, num_mip_levels, num_samples, buffer )
@@ -253,7 +253,13 @@ module OpenCL
253
253
 
254
254
  # checks if a :cl_int corresponds to an Error code and raises the apropriate OpenCL::Error
255
255
  def self.error_check(errcode)
256
- raise OpenCL::Error::new(OpenCL::Error.get_error_string(errcode)) if errcode != SUCCESS
256
+ return nil if errcode == SUCCESS
257
+ klass = OpenCL::Error::CLASSES[errcode]
258
+ if klass then
259
+ raise klass::new
260
+ else
261
+ raise OpenCL::Error::new("#{errcode}")
262
+ end
257
263
  end
258
264
 
259
265
  # Generates a new method for klass that use the apropriate clGetKlassInfo, to read an Array of element of the given type. The info queried is specified by name.
@@ -473,78 +473,1640 @@ module OpenCL
473
473
  #:startdoc:
474
474
  # Maps OpenCL logiczal Error Type, and is used to raise Errors
475
475
  class Error < StandardError
476
- @@codes = {}
477
- @@codes[-1001] = 'PLATFORM_NOT_FOUND_KHR'
478
- @@codes[-1000] = 'INVALID_GL_SHAREGROUP_REFERENCE_KHR'
479
- @@codes[-3] = 'COMPILER_NOT_AVAILABLE'
480
- @@codes[-2] = 'DEVICE_NOT_AVAILABLE'
481
- @@codes[-1] = 'DEVICE_NOT_FOUND'
482
- @@codes[-70] = 'INVALID_DEVICE_QUEUE'
483
- @@codes[-69] = 'INVALID_PIPE_SIZE'
484
- @@codes[-68] = 'INVALID_DEVICE_PARTITION_COUNT'
485
- @@codes[-67] = 'INVALID_LINKER_OPTIONS'
486
- @@codes[-66] = 'INVALID_COMPILER_OPTIONS'
487
- @@codes[-65] = 'INVALID_IMAGE_DESCRIPTOR'
488
- @@codes[-64] = 'INVALID_PROPERTY'
489
- @@codes[-63] = 'INVALID_GLOBAL_WORK_SIZE'
490
- @@codes[-62] = 'INVALID_MIP_LEVEL'
491
- @@codes[-61] = 'INVALID_BUFFER_SIZE'
492
- @@codes[-60] = 'INVALID_GL_OBJECT'
493
- @@codes[-59] = 'INVALID_OPERATION'
494
- @@codes[-58] = 'INVALID_EVENT'
495
- @@codes[-57] = 'INVALID_EVENT_WAIT_LIST'
496
- @@codes[-56] = 'INVALID_GLOBAL_OFFSET'
497
- @@codes[-55] = 'INVALID_WORK_ITEM_SIZE'
498
- @@codes[-54] = 'INVALID_WORK_GROUP_SIZE'
499
- @@codes[-53] = 'INVALID_WORK_DIMENSION'
500
- @@codes[-52] = 'INVALID_KERNEL_ARGS'
501
- @@codes[-51] = 'INVALID_ARG_SIZE'
502
- @@codes[-50] = 'INVALID_ARG_VALUE'
503
- @@codes[-49] = 'INVALID_ARG_INDEX'
504
- @@codes[-48] = 'INVALID_KERNEL'
505
- @@codes[-47] = 'INVALID_KERNEL_DEFINITION'
506
- @@codes[-46] = 'INVALID_KERNEL_NAME'
507
- @@codes[-45] = 'INVALID_PROGRAM_EXECUTABLE'
508
- @@codes[-44] = 'INVALID_PROGRAM'
509
- @@codes[-43] = 'INVALID_BUILD_OPTIONS'
510
- @@codes[-42] = 'INVALID_BINARY'
511
- @@codes[-41] = 'INVALID_SAMPLER'
512
- @@codes[-40] = 'INVALID_IMAGE_SIZE'
513
- @@codes[-39] = 'INVALID_IMAGE_FORMAT_DESCRIPTOR'
514
- @@codes[-38] = 'INVALID_MEM_OBJECT'
515
- @@codes[-37] = 'INVALID_HOST_PTR'
516
- @@codes[-36] = 'INVALID_COMMAND_QUEUE'
517
- @@codes[-35] = 'INVALID_QUEUE_PROPERTIES'
518
- @@codes[-34] = 'INVALID_CONTEXT'
519
- @@codes[-33] = 'INVALID_DEVICE'
520
- @@codes[-32] = 'INVALID_PLATFORM'
521
- @@codes[-31] = 'INVALID_DEVICE_TYPE'
522
- @@codes[-30] = 'INVALID_VALUE'
523
- @@codes[-19] = 'KERNEL_ARG_INFO_NOT_AVAILABLE'
524
- @@codes[-18] = 'DEVICE_PARTITION_FAILED'
525
- @@codes[-17] = 'LINK_PROGRAM_FAILURE'
526
- @@codes[-16] = 'LINKER_NOT_AVAILABLE'
527
- @@codes[-15] = 'COMPILE_PROGRAM_FAILURE'
528
- @@codes[-14] = 'EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST'
529
- @@codes[-13] = 'MISALIGNED_SUB_BUFFER_OFFSET'
530
- @@codes[-12] = 'MAP_FAILURE'
531
- @@codes[-11] = 'BUILD_PROGRAM_FAILURE'
532
- @@codes[-10] = 'IMAGE_FORMAT_NOT_SUPPORTED'
533
- @@codes[-9] = 'IMAGE_FORMAT_MISMATCH'
534
- @@codes[-8] = 'MEM_COPY_OVERLAP'
535
- @@codes[-7] = 'PROFILING_INFO_NOT_AVAILABLE'
536
- @@codes[-6] = 'OUT_OF_HOST_MEMORY'
537
- @@codes[-5] = 'OUT_OF_RESOURCES'
538
- @@codes[-4] = 'MEM_OBJECT_ALLOCATION_FAILURE'
539
- # Returns a more descriptive String for the provided error code
540
- def self.get_error_string(errcode)
541
- return "OpenCL Error: #{@@codes[errcode]} (#{errcode})"
542
- end
543
-
544
- # Returns a string representing the name corresponding to the error code given
545
- def self.get_name(errcode)
546
- return @@codes[errcode]
476
+ attr_reader :code
477
+
478
+ def initialize(errcode)
479
+ @code = errcode
480
+ super("#{errcode}")
481
+ end
482
+
483
+ CLASSES = {}
484
+
485
+ # Returns a string representing the name corresponding to the error code
486
+ def self.name(errcode)
487
+ if CLASSES[errcode] then
488
+ return CLASSES[errcode].name
489
+ else
490
+ return "#{errcode}"
491
+ end
492
+ end
493
+
494
+ # Returns a string representing the name corresponding to the error
495
+ def name
496
+ return "#{@code}"
497
+ end
498
+
499
+ class PLATFORM_NOT_FOUND_KHR < Error
500
+
501
+ def initialize
502
+ super(-1001)
503
+ end
504
+
505
+ # Returns a string representing the name corresponding to the error classe
506
+ def self.name
507
+ return "PLATFORM_NOT_FOUND_KHR"
508
+ end
509
+
510
+ # Returns a string representing the name corresponding to the error
511
+ def name
512
+ return "PLATFORM_NOT_FOUND_KHR"
513
+ end
514
+
515
+ # Returns the code corresponding to this error class
516
+ def self.code
517
+ return -1001
518
+ end
519
+
520
+ end
521
+
522
+ CLASSES[-1001] = PLATFORM_NOT_FOUND_KHR
523
+ PlatformNotFoundKHR = PLATFORM_NOT_FOUND_KHR
524
+
525
+ class INVALID_GL_SHAREGROUP_REFERENCE_KHR < Error
526
+
527
+ def initialize
528
+ super(-1000)
529
+ end
530
+
531
+ # Returns a string representing the name corresponding to the error classe
532
+ def self.name
533
+ return "INVALID_GL_SHAREGROUP_REFERENCE_KHR"
534
+ end
535
+
536
+ # Returns a string representing the name corresponding to the error
537
+ def name
538
+ return "INVALID_GL_SHAREGROUP_REFERENCE_KHR"
539
+ end
540
+
541
+ # Returns the code corresponding to this error class
542
+ def self.code
543
+ return -1000
544
+ end
545
+
546
+ end
547
+
548
+ CLASSES[-1000] = INVALID_GL_SHAREGROUP_REFERENCE_KHR
549
+ InvalidGLSharegroupReferenceKHR = INVALID_GL_SHAREGROUP_REFERENCE_KHR
550
+
551
+ class COMPILER_NOT_AVAILABLE < Error
552
+
553
+ def initialize
554
+ super(-3)
555
+ end
556
+
557
+ # Returns a string representing the name corresponding to the error classe
558
+ def self.name
559
+ return "COMPILER_NOT_AVAILABLE"
560
+ end
561
+
562
+ # Returns a string representing the name corresponding to the error
563
+ def name
564
+ return "COMPILER_NOT_AVAILABLE"
565
+ end
566
+
567
+ # Returns the code corresponding to this error class
568
+ def self.code
569
+ return -3
570
+ end
571
+
572
+ end
573
+
574
+ CLASSES[-3] = COMPILER_NOT_AVAILABLE
575
+ CompilerNotAvailable = COMPILER_NOT_AVAILABLE
576
+
577
+ class DEVICE_NOT_AVAILABLE < Error
578
+
579
+ def initialize
580
+ super(-2)
581
+ end
582
+
583
+ # Returns a string representing the name corresponding to the error classe
584
+ def self.name
585
+ return "DEVICE_NOT_AVAILABLE"
586
+ end
587
+
588
+ # Returns a string representing the name corresponding to the error
589
+ def name
590
+ return "DEVICE_NOT_AVAILABLE"
591
+ end
592
+
593
+ # Returns the code corresponding to this error class
594
+ def self.code
595
+ return -2
596
+ end
597
+
598
+ end
599
+
600
+ CLASSES[-2] = DEVICE_NOT_AVAILABLE
601
+ DeviceNotAvailable = DEVICE_NOT_AVAILABLE
602
+
603
+ class DEVICE_NOT_FOUND < Error
604
+
605
+ def initialize
606
+ super(-1)
607
+ end
608
+
609
+ # Returns a string representing the name corresponding to the error classe
610
+ def self.name
611
+ return "DEVICE_NOT_FOUND"
612
+ end
613
+
614
+ # Returns a string representing the name corresponding to the error
615
+ def name
616
+ return "DEVICE_NOT_FOUND"
617
+ end
618
+
619
+ # Returns the code corresponding to this error class
620
+ def self.code
621
+ return -1
622
+ end
623
+
624
+ end
625
+
626
+ CLASSES[-1] = DEVICE_NOT_FOUND
627
+ DeviceNotFound = DEVICE_NOT_FOUND
628
+
629
+ class INVALID_DEVICE_QUEUE < Error
630
+
631
+ def initialize
632
+ super(-70)
633
+ end
634
+
635
+ # Returns a string representing the name corresponding to the error classe
636
+ def self.name
637
+ return "INVALID_DEVICE_QUEUE"
638
+ end
639
+
640
+ # Returns a string representing the name corresponding to the error
641
+ def name
642
+ return "INVALID_DEVICE_QUEUE"
643
+ end
644
+
645
+ # Returns the code corresponding to this error class
646
+ def self.code
647
+ return -70
648
+ end
649
+
650
+ end
651
+
652
+ CLASSES[-70] = INVALID_DEVICE_QUEUE
653
+ InvalidDeviceQueue = INVALID_DEVICE_QUEUE
654
+
655
+ class INVALID_PIPE_SIZE < Error
656
+
657
+ def initialize
658
+ super(-69)
659
+ end
660
+
661
+ # Returns a string representing the name corresponding to the error classe
662
+ def self.name
663
+ return "INVALID_PIPE_SIZE"
664
+ end
665
+
666
+ # Returns a string representing the name corresponding to the error
667
+ def name
668
+ return "INVALID_PIPE_SIZE"
669
+ end
670
+
671
+ # Returns the code corresponding to this error class
672
+ def self.code
673
+ return -69
674
+ end
675
+
676
+ end
677
+
678
+ CLASSES[-69] = INVALID_PIPE_SIZE
679
+ InvalidPipeSize = INVALID_PIPE_SIZE
680
+
681
+ class INVALID_DEVICE_PARTITION_COUNT < Error
682
+
683
+ def initialize
684
+ super(-68)
685
+ end
686
+
687
+ # Returns a string representing the name corresponding to the error classe
688
+ def self.name
689
+ return "INVALID_DEVICE_PARTITION_COUNT"
690
+ end
691
+
692
+ # Returns a string representing the name corresponding to the error
693
+ def name
694
+ return "INVALID_DEVICE_PARTITION_COUNT"
695
+ end
696
+
697
+ # Returns the code corresponding to this error class
698
+ def self.code
699
+ return -68
700
+ end
701
+
702
+ end
703
+
704
+ CLASSES[-68] = INVALID_DEVICE_PARTITION_COUNT
705
+ InvalidDevicePartitionCount = INVALID_DEVICE_PARTITION_COUNT
706
+
707
+ class INVALID_LINKER_OPTIONS < Error
708
+
709
+ def initialize
710
+ super(-67)
711
+ end
712
+
713
+ # Returns a string representing the name corresponding to the error classe
714
+ def self.name
715
+ return "INVALID_LINKER_OPTIONS"
716
+ end
717
+
718
+ # Returns a string representing the name corresponding to the error
719
+ def name
720
+ return "INVALID_LINKER_OPTIONS"
721
+ end
722
+
723
+ # Returns the code corresponding to this error class
724
+ def self.code
725
+ return -67
726
+ end
727
+
728
+ end
729
+
730
+ CLASSES[-67] = INVALID_LINKER_OPTIONS
731
+ InvalidLinkerOptions = INVALID_LINKER_OPTIONS
732
+
733
+ class INVALID_COMPILER_OPTIONS < Error
734
+
735
+ def initialize
736
+ super(-66)
737
+ end
738
+
739
+ # Returns a string representing the name corresponding to the error classe
740
+ def self.name
741
+ return "INVALID_COMPILER_OPTIONS"
742
+ end
743
+
744
+ # Returns a string representing the name corresponding to the error
745
+ def name
746
+ return "INVALID_COMPILER_OPTIONS"
747
+ end
748
+
749
+ # Returns the code corresponding to this error class
750
+ def self.code
751
+ return -66
752
+ end
753
+
754
+ end
755
+
756
+ CLASSES[-66] = INVALID_COMPILER_OPTIONS
757
+ InvalidCompilerOptions = INVALID_COMPILER_OPTIONS
758
+
759
+ class INVALID_IMAGE_DESCRIPTOR < Error
760
+
761
+ def initialize
762
+ super(-65)
763
+ end
764
+
765
+ # Returns a string representing the name corresponding to the error classe
766
+ def self.name
767
+ return "INVALID_IMAGE_DESCRIPTOR"
768
+ end
769
+
770
+ # Returns a string representing the name corresponding to the error
771
+ def name
772
+ return "INVALID_IMAGE_DESCRIPTOR"
773
+ end
774
+
775
+ # Returns the code corresponding to this error class
776
+ def self.code
777
+ return -65
778
+ end
779
+
780
+ end
781
+
782
+ CLASSES[-65] = INVALID_IMAGE_DESCRIPTOR
783
+ InvalidImageDescriptor = INVALID_IMAGE_DESCRIPTOR
784
+
785
+ class INVALID_PROPERTY < Error
786
+
787
+ def initialize
788
+ super(-64)
789
+ end
790
+
791
+ # Returns a string representing the name corresponding to the error classe
792
+ def self.name
793
+ return "INVALID_PROPERTY"
794
+ end
795
+
796
+ # Returns a string representing the name corresponding to the error
797
+ def name
798
+ return "INVALID_PROPERTY"
799
+ end
800
+
801
+ # Returns the code corresponding to this error class
802
+ def self.code
803
+ return -64
804
+ end
805
+
806
+ end
807
+
808
+ CLASSES[-64] = INVALID_PROPERTY
809
+ InvalidProperty = INVALID_PROPERTY
810
+
811
+ class INVALID_GLOBAL_WORK_SIZE < Error
812
+
813
+ def initialize
814
+ super(-63)
815
+ end
816
+
817
+ # Returns a string representing the name corresponding to the error classe
818
+ def self.name
819
+ return "INVALID_GLOBAL_WORK_SIZE"
820
+ end
821
+
822
+ # Returns a string representing the name corresponding to the error
823
+ def name
824
+ return "INVALID_GLOBAL_WORK_SIZE"
825
+ end
826
+
827
+ # Returns the code corresponding to this error class
828
+ def self.code
829
+ return -63
830
+ end
831
+
832
+ end
833
+
834
+ CLASSES[-63] = INVALID_GLOBAL_WORK_SIZE
835
+ InvalidGLOBALWorkSize = INVALID_GLOBAL_WORK_SIZE
836
+
837
+ class INVALID_MIP_LEVEL < Error
838
+
839
+ def initialize
840
+ super(-62)
841
+ end
842
+
843
+ # Returns a string representing the name corresponding to the error classe
844
+ def self.name
845
+ return "INVALID_MIP_LEVEL"
846
+ end
847
+
848
+ # Returns a string representing the name corresponding to the error
849
+ def name
850
+ return "INVALID_MIP_LEVEL"
851
+ end
852
+
853
+ # Returns the code corresponding to this error class
854
+ def self.code
855
+ return -62
856
+ end
857
+
858
+ end
859
+
860
+ CLASSES[-62] = INVALID_MIP_LEVEL
861
+ InvalidMipLevel = INVALID_MIP_LEVEL
862
+
863
+ class INVALID_BUFFER_SIZE < Error
864
+
865
+ def initialize
866
+ super(-61)
867
+ end
868
+
869
+ # Returns a string representing the name corresponding to the error classe
870
+ def self.name
871
+ return "INVALID_BUFFER_SIZE"
872
+ end
873
+
874
+ # Returns a string representing the name corresponding to the error
875
+ def name
876
+ return "INVALID_BUFFER_SIZE"
877
+ end
878
+
879
+ # Returns the code corresponding to this error class
880
+ def self.code
881
+ return -61
882
+ end
883
+
884
+ end
885
+
886
+ CLASSES[-61] = INVALID_BUFFER_SIZE
887
+ InvalidBufferSize = INVALID_BUFFER_SIZE
888
+
889
+ class INVALID_GL_OBJECT < Error
890
+
891
+ def initialize
892
+ super(-60)
893
+ end
894
+
895
+ # Returns a string representing the name corresponding to the error classe
896
+ def self.name
897
+ return "INVALID_GL_OBJECT"
898
+ end
899
+
900
+ # Returns a string representing the name corresponding to the error
901
+ def name
902
+ return "INVALID_GL_OBJECT"
903
+ end
904
+
905
+ # Returns the code corresponding to this error class
906
+ def self.code
907
+ return -60
908
+ end
909
+
910
+ end
911
+
912
+ CLASSES[-60] = INVALID_GL_OBJECT
913
+ InvalidGLObject = INVALID_GL_OBJECT
914
+
915
+ class INVALID_OPERATION < Error
916
+
917
+ def initialize
918
+ super(-59)
919
+ end
920
+
921
+ # Returns a string representing the name corresponding to the error classe
922
+ def self.name
923
+ return "INVALID_OPERATION"
924
+ end
925
+
926
+ # Returns a string representing the name corresponding to the error
927
+ def name
928
+ return "INVALID_OPERATION"
929
+ end
930
+
931
+ # Returns the code corresponding to this error class
932
+ def self.code
933
+ return -59
934
+ end
935
+
936
+ end
937
+
938
+ CLASSES[-59] = INVALID_OPERATION
939
+ InvalidOperation = INVALID_OPERATION
940
+
941
+ class INVALID_EVENT < Error
942
+
943
+ def initialize
944
+ super(-58)
945
+ end
946
+
947
+ # Returns a string representing the name corresponding to the error classe
948
+ def self.name
949
+ return "INVALID_EVENT"
950
+ end
951
+
952
+ # Returns a string representing the name corresponding to the error
953
+ def name
954
+ return "INVALID_EVENT"
955
+ end
956
+
957
+ # Returns the code corresponding to this error class
958
+ def self.code
959
+ return -58
960
+ end
961
+
962
+ end
963
+
964
+ CLASSES[-58] = INVALID_EVENT
965
+ InvalidEvent = INVALID_EVENT
966
+
967
+ class INVALID_EVENT_WAIT_LIST < Error
968
+
969
+ def initialize
970
+ super(-57)
971
+ end
972
+
973
+ # Returns a string representing the name corresponding to the error classe
974
+ def self.name
975
+ return "INVALID_EVENT_WAIT_LIST"
976
+ end
977
+
978
+ # Returns a string representing the name corresponding to the error
979
+ def name
980
+ return "INVALID_EVENT_WAIT_LIST"
981
+ end
982
+
983
+ # Returns the code corresponding to this error class
984
+ def self.code
985
+ return -57
986
+ end
987
+
988
+ end
989
+
990
+ CLASSES[-57] = INVALID_EVENT_WAIT_LIST
991
+ InvalidEventWaitList = INVALID_EVENT_WAIT_LIST
992
+
993
+ class INVALID_GLOBAL_OFFSET < Error
994
+
995
+ def initialize
996
+ super(-56)
997
+ end
998
+
999
+ # Returns a string representing the name corresponding to the error classe
1000
+ def self.name
1001
+ return "INVALID_GLOBAL_OFFSET"
1002
+ end
1003
+
1004
+ # Returns a string representing the name corresponding to the error
1005
+ def name
1006
+ return "INVALID_GLOBAL_OFFSET"
1007
+ end
1008
+
1009
+ # Returns the code corresponding to this error class
1010
+ def self.code
1011
+ return -56
1012
+ end
1013
+
1014
+ end
1015
+
1016
+ CLASSES[-56] = INVALID_GLOBAL_OFFSET
1017
+ InvalidGLOBALOffset = INVALID_GLOBAL_OFFSET
1018
+
1019
+ class INVALID_WORK_ITEM_SIZE < Error
1020
+
1021
+ def initialize
1022
+ super(-55)
1023
+ end
1024
+
1025
+ # Returns a string representing the name corresponding to the error classe
1026
+ def self.name
1027
+ return "INVALID_WORK_ITEM_SIZE"
1028
+ end
1029
+
1030
+ # Returns a string representing the name corresponding to the error
1031
+ def name
1032
+ return "INVALID_WORK_ITEM_SIZE"
1033
+ end
1034
+
1035
+ # Returns the code corresponding to this error class
1036
+ def self.code
1037
+ return -55
1038
+ end
1039
+
1040
+ end
1041
+
1042
+ CLASSES[-55] = INVALID_WORK_ITEM_SIZE
1043
+ InvalidWorkItemSize = INVALID_WORK_ITEM_SIZE
1044
+
1045
+ class INVALID_WORK_GROUP_SIZE < Error
1046
+
1047
+ def initialize
1048
+ super(-54)
1049
+ end
1050
+
1051
+ # Returns a string representing the name corresponding to the error classe
1052
+ def self.name
1053
+ return "INVALID_WORK_GROUP_SIZE"
1054
+ end
1055
+
1056
+ # Returns a string representing the name corresponding to the error
1057
+ def name
1058
+ return "INVALID_WORK_GROUP_SIZE"
1059
+ end
1060
+
1061
+ # Returns the code corresponding to this error class
1062
+ def self.code
1063
+ return -54
1064
+ end
1065
+
1066
+ end
1067
+
1068
+ CLASSES[-54] = INVALID_WORK_GROUP_SIZE
1069
+ InvalidWorkGroupSize = INVALID_WORK_GROUP_SIZE
1070
+
1071
+ class INVALID_WORK_DIMENSION < Error
1072
+
1073
+ def initialize
1074
+ super(-53)
1075
+ end
1076
+
1077
+ # Returns a string representing the name corresponding to the error classe
1078
+ def self.name
1079
+ return "INVALID_WORK_DIMENSION"
1080
+ end
1081
+
1082
+ # Returns a string representing the name corresponding to the error
1083
+ def name
1084
+ return "INVALID_WORK_DIMENSION"
1085
+ end
1086
+
1087
+ # Returns the code corresponding to this error class
1088
+ def self.code
1089
+ return -53
1090
+ end
1091
+
1092
+ end
1093
+
1094
+ CLASSES[-53] = INVALID_WORK_DIMENSION
1095
+ InvalidWorkDimension = INVALID_WORK_DIMENSION
1096
+
1097
+ class INVALID_KERNEL_ARGS < Error
1098
+
1099
+ def initialize
1100
+ super(-52)
1101
+ end
1102
+
1103
+ # Returns a string representing the name corresponding to the error classe
1104
+ def self.name
1105
+ return "INVALID_KERNEL_ARGS"
1106
+ end
1107
+
1108
+ # Returns a string representing the name corresponding to the error
1109
+ def name
1110
+ return "INVALID_KERNEL_ARGS"
1111
+ end
1112
+
1113
+ # Returns the code corresponding to this error class
1114
+ def self.code
1115
+ return -52
1116
+ end
1117
+
1118
+ end
1119
+
1120
+ CLASSES[-52] = INVALID_KERNEL_ARGS
1121
+ InvalidKernelArgs = INVALID_KERNEL_ARGS
1122
+
1123
+ class INVALID_ARG_SIZE < Error
1124
+
1125
+ def initialize
1126
+ super(-51)
1127
+ end
1128
+
1129
+ # Returns a string representing the name corresponding to the error classe
1130
+ def self.name
1131
+ return "INVALID_ARG_SIZE"
1132
+ end
1133
+
1134
+ # Returns a string representing the name corresponding to the error
1135
+ def name
1136
+ return "INVALID_ARG_SIZE"
1137
+ end
1138
+
1139
+ # Returns the code corresponding to this error class
1140
+ def self.code
1141
+ return -51
1142
+ end
1143
+
1144
+ end
1145
+
1146
+ CLASSES[-51] = INVALID_ARG_SIZE
1147
+ InvalidArgSize = INVALID_ARG_SIZE
1148
+
1149
+ class INVALID_ARG_VALUE < Error
1150
+
1151
+ def initialize
1152
+ super(-50)
1153
+ end
1154
+
1155
+ # Returns a string representing the name corresponding to the error classe
1156
+ def self.name
1157
+ return "INVALID_ARG_VALUE"
1158
+ end
1159
+
1160
+ # Returns a string representing the name corresponding to the error
1161
+ def name
1162
+ return "INVALID_ARG_VALUE"
1163
+ end
1164
+
1165
+ # Returns the code corresponding to this error class
1166
+ def self.code
1167
+ return -50
1168
+ end
1169
+
1170
+ end
1171
+
1172
+ CLASSES[-50] = INVALID_ARG_VALUE
1173
+ InvalidArgValue = INVALID_ARG_VALUE
1174
+
1175
+ class INVALID_ARG_INDEX < Error
1176
+
1177
+ def initialize
1178
+ super(-49)
1179
+ end
1180
+
1181
+ # Returns a string representing the name corresponding to the error classe
1182
+ def self.name
1183
+ return "INVALID_ARG_INDEX"
1184
+ end
1185
+
1186
+ # Returns a string representing the name corresponding to the error
1187
+ def name
1188
+ return "INVALID_ARG_INDEX"
1189
+ end
1190
+
1191
+ # Returns the code corresponding to this error class
1192
+ def self.code
1193
+ return -49
1194
+ end
1195
+
1196
+ end
1197
+
1198
+ CLASSES[-49] = INVALID_ARG_INDEX
1199
+ InvalidArgIndex = INVALID_ARG_INDEX
1200
+
1201
+ class INVALID_KERNEL < Error
1202
+
1203
+ def initialize
1204
+ super(-48)
1205
+ end
1206
+
1207
+ # Returns a string representing the name corresponding to the error classe
1208
+ def self.name
1209
+ return "INVALID_KERNEL"
1210
+ end
1211
+
1212
+ # Returns a string representing the name corresponding to the error
1213
+ def name
1214
+ return "INVALID_KERNEL"
1215
+ end
1216
+
1217
+ # Returns the code corresponding to this error class
1218
+ def self.code
1219
+ return -48
1220
+ end
1221
+
1222
+ end
1223
+
1224
+ CLASSES[-48] = INVALID_KERNEL
1225
+ InvalidKernel = INVALID_KERNEL
1226
+
1227
+ class INVALID_KERNEL_DEFINITION < Error
1228
+
1229
+ def initialize
1230
+ super(-47)
1231
+ end
1232
+
1233
+ # Returns a string representing the name corresponding to the error classe
1234
+ def self.name
1235
+ return "INVALID_KERNEL_DEFINITION"
1236
+ end
1237
+
1238
+ # Returns a string representing the name corresponding to the error
1239
+ def name
1240
+ return "INVALID_KERNEL_DEFINITION"
1241
+ end
1242
+
1243
+ # Returns the code corresponding to this error class
1244
+ def self.code
1245
+ return -47
1246
+ end
1247
+
1248
+ end
1249
+
1250
+ CLASSES[-47] = INVALID_KERNEL_DEFINITION
1251
+ InvalidKernelDefinition = INVALID_KERNEL_DEFINITION
1252
+
1253
+ class INVALID_KERNEL_NAME < Error
1254
+
1255
+ def initialize
1256
+ super(-46)
1257
+ end
1258
+
1259
+ # Returns a string representing the name corresponding to the error classe
1260
+ def self.name
1261
+ return "INVALID_KERNEL_NAME"
1262
+ end
1263
+
1264
+ # Returns a string representing the name corresponding to the error
1265
+ def name
1266
+ return "INVALID_KERNEL_NAME"
1267
+ end
1268
+
1269
+ # Returns the code corresponding to this error class
1270
+ def self.code
1271
+ return -46
1272
+ end
1273
+
1274
+ end
1275
+
1276
+ CLASSES[-46] = INVALID_KERNEL_NAME
1277
+ InvalidKernelName = INVALID_KERNEL_NAME
1278
+
1279
+ class INVALID_PROGRAM_EXECUTABLE < Error
1280
+
1281
+ def initialize
1282
+ super(-45)
1283
+ end
1284
+
1285
+ # Returns a string representing the name corresponding to the error classe
1286
+ def self.name
1287
+ return "INVALID_PROGRAM_EXECUTABLE"
1288
+ end
1289
+
1290
+ # Returns a string representing the name corresponding to the error
1291
+ def name
1292
+ return "INVALID_PROGRAM_EXECUTABLE"
1293
+ end
1294
+
1295
+ # Returns the code corresponding to this error class
1296
+ def self.code
1297
+ return -45
1298
+ end
1299
+
1300
+ end
1301
+
1302
+ CLASSES[-45] = INVALID_PROGRAM_EXECUTABLE
1303
+ InvalidProgramExecutable = INVALID_PROGRAM_EXECUTABLE
1304
+
1305
+ class INVALID_PROGRAM < Error
1306
+
1307
+ def initialize
1308
+ super(-44)
1309
+ end
1310
+
1311
+ # Returns a string representing the name corresponding to the error classe
1312
+ def self.name
1313
+ return "INVALID_PROGRAM"
1314
+ end
1315
+
1316
+ # Returns a string representing the name corresponding to the error
1317
+ def name
1318
+ return "INVALID_PROGRAM"
1319
+ end
1320
+
1321
+ # Returns the code corresponding to this error class
1322
+ def self.code
1323
+ return -44
1324
+ end
1325
+
1326
+ end
1327
+
1328
+ CLASSES[-44] = INVALID_PROGRAM
1329
+ InvalidProgram = INVALID_PROGRAM
1330
+
1331
+ class INVALID_BUILD_OPTIONS < Error
1332
+
1333
+ def initialize
1334
+ super(-43)
1335
+ end
1336
+
1337
+ # Returns a string representing the name corresponding to the error classe
1338
+ def self.name
1339
+ return "INVALID_BUILD_OPTIONS"
1340
+ end
1341
+
1342
+ # Returns a string representing the name corresponding to the error
1343
+ def name
1344
+ return "INVALID_BUILD_OPTIONS"
1345
+ end
1346
+
1347
+ # Returns the code corresponding to this error class
1348
+ def self.code
1349
+ return -43
1350
+ end
1351
+
1352
+ end
1353
+
1354
+ CLASSES[-43] = INVALID_BUILD_OPTIONS
1355
+ InvalidBuildOptions = INVALID_BUILD_OPTIONS
1356
+
1357
+ class INVALID_BINARY < Error
1358
+
1359
+ def initialize
1360
+ super(-42)
1361
+ end
1362
+
1363
+ # Returns a string representing the name corresponding to the error classe
1364
+ def self.name
1365
+ return "INVALID_BINARY"
1366
+ end
1367
+
1368
+ # Returns a string representing the name corresponding to the error
1369
+ def name
1370
+ return "INVALID_BINARY"
1371
+ end
1372
+
1373
+ # Returns the code corresponding to this error class
1374
+ def self.code
1375
+ return -42
1376
+ end
1377
+
1378
+ end
1379
+
1380
+ CLASSES[-42] = INVALID_BINARY
1381
+ InvalidBinary = INVALID_BINARY
1382
+
1383
+ class INVALID_SAMPLER < Error
1384
+
1385
+ def initialize
1386
+ super(-41)
1387
+ end
1388
+
1389
+ # Returns a string representing the name corresponding to the error classe
1390
+ def self.name
1391
+ return "INVALID_SAMPLER"
1392
+ end
1393
+
1394
+ # Returns a string representing the name corresponding to the error
1395
+ def name
1396
+ return "INVALID_SAMPLER"
1397
+ end
1398
+
1399
+ # Returns the code corresponding to this error class
1400
+ def self.code
1401
+ return -41
1402
+ end
1403
+
1404
+ end
1405
+
1406
+ CLASSES[-41] = INVALID_SAMPLER
1407
+ InvalidSampler = INVALID_SAMPLER
1408
+
1409
+ class INVALID_IMAGE_SIZE < Error
1410
+
1411
+ def initialize
1412
+ super(-40)
1413
+ end
1414
+
1415
+ # Returns a string representing the name corresponding to the error classe
1416
+ def self.name
1417
+ return "INVALID_IMAGE_SIZE"
1418
+ end
1419
+
1420
+ # Returns a string representing the name corresponding to the error
1421
+ def name
1422
+ return "INVALID_IMAGE_SIZE"
1423
+ end
1424
+
1425
+ # Returns the code corresponding to this error class
1426
+ def self.code
1427
+ return -40
1428
+ end
1429
+
1430
+ end
1431
+
1432
+ CLASSES[-40] = INVALID_IMAGE_SIZE
1433
+ InvalidImageSize = INVALID_IMAGE_SIZE
1434
+
1435
+ class INVALID_IMAGE_FORMAT_DESCRIPTOR < Error
1436
+
1437
+ def initialize
1438
+ super(-39)
1439
+ end
1440
+
1441
+ # Returns a string representing the name corresponding to the error classe
1442
+ def self.name
1443
+ return "INVALID_IMAGE_FORMAT_DESCRIPTOR"
1444
+ end
1445
+
1446
+ # Returns a string representing the name corresponding to the error
1447
+ def name
1448
+ return "INVALID_IMAGE_FORMAT_DESCRIPTOR"
1449
+ end
1450
+
1451
+ # Returns the code corresponding to this error class
1452
+ def self.code
1453
+ return -39
1454
+ end
1455
+
1456
+ end
1457
+
1458
+ CLASSES[-39] = INVALID_IMAGE_FORMAT_DESCRIPTOR
1459
+ InvalidImageFormatDescriptor = INVALID_IMAGE_FORMAT_DESCRIPTOR
1460
+
1461
+ class INVALID_MEM_OBJECT < Error
1462
+
1463
+ def initialize
1464
+ super(-38)
1465
+ end
1466
+
1467
+ # Returns a string representing the name corresponding to the error classe
1468
+ def self.name
1469
+ return "INVALID_MEM_OBJECT"
1470
+ end
1471
+
1472
+ # Returns a string representing the name corresponding to the error
1473
+ def name
1474
+ return "INVALID_MEM_OBJECT"
1475
+ end
1476
+
1477
+ # Returns the code corresponding to this error class
1478
+ def self.code
1479
+ return -38
1480
+ end
1481
+
1482
+ end
1483
+
1484
+ CLASSES[-38] = INVALID_MEM_OBJECT
1485
+ InvalidMemObject = INVALID_MEM_OBJECT
1486
+
1487
+ class INVALID_HOST_PTR < Error
1488
+
1489
+ def initialize
1490
+ super(-37)
1491
+ end
1492
+
1493
+ # Returns a string representing the name corresponding to the error classe
1494
+ def self.name
1495
+ return "INVALID_HOST_PTR"
1496
+ end
1497
+
1498
+ # Returns a string representing the name corresponding to the error
1499
+ def name
1500
+ return "INVALID_HOST_PTR"
1501
+ end
1502
+
1503
+ # Returns the code corresponding to this error class
1504
+ def self.code
1505
+ return -37
1506
+ end
1507
+
1508
+ end
1509
+
1510
+ CLASSES[-37] = INVALID_HOST_PTR
1511
+ InvalidHostPtr = INVALID_HOST_PTR
1512
+
1513
+ class INVALID_COMMAND_QUEUE < Error
1514
+
1515
+ def initialize
1516
+ super(-36)
1517
+ end
1518
+
1519
+ # Returns a string representing the name corresponding to the error classe
1520
+ def self.name
1521
+ return "INVALID_COMMAND_QUEUE"
1522
+ end
1523
+
1524
+ # Returns a string representing the name corresponding to the error
1525
+ def name
1526
+ return "INVALID_COMMAND_QUEUE"
1527
+ end
1528
+
1529
+ # Returns the code corresponding to this error class
1530
+ def self.code
1531
+ return -36
1532
+ end
1533
+
1534
+ end
1535
+
1536
+ CLASSES[-36] = INVALID_COMMAND_QUEUE
1537
+ InvalidCommandQueue = INVALID_COMMAND_QUEUE
1538
+
1539
+ class INVALID_QUEUE_PROPERTIES < Error
1540
+
1541
+ def initialize
1542
+ super(-35)
1543
+ end
1544
+
1545
+ # Returns a string representing the name corresponding to the error classe
1546
+ def self.name
1547
+ return "INVALID_QUEUE_PROPERTIES"
1548
+ end
1549
+
1550
+ # Returns a string representing the name corresponding to the error
1551
+ def name
1552
+ return "INVALID_QUEUE_PROPERTIES"
1553
+ end
1554
+
1555
+ # Returns the code corresponding to this error class
1556
+ def self.code
1557
+ return -35
1558
+ end
1559
+
1560
+ end
1561
+
1562
+ CLASSES[-35] = INVALID_QUEUE_PROPERTIES
1563
+ InvalidQueueProperties = INVALID_QUEUE_PROPERTIES
1564
+
1565
+ class INVALID_CONTEXT < Error
1566
+
1567
+ def initialize
1568
+ super(-34)
1569
+ end
1570
+
1571
+ # Returns a string representing the name corresponding to the error classe
1572
+ def self.name
1573
+ return "INVALID_CONTEXT"
1574
+ end
1575
+
1576
+ # Returns a string representing the name corresponding to the error
1577
+ def name
1578
+ return "INVALID_CONTEXT"
1579
+ end
1580
+
1581
+ # Returns the code corresponding to this error class
1582
+ def self.code
1583
+ return -34
1584
+ end
1585
+
1586
+ end
1587
+
1588
+ CLASSES[-34] = INVALID_CONTEXT
1589
+ InvalidContext = INVALID_CONTEXT
1590
+
1591
+ class INVALID_DEVICE < Error
1592
+
1593
+ def initialize
1594
+ super(-33)
1595
+ end
1596
+
1597
+ # Returns a string representing the name corresponding to the error classe
1598
+ def self.name
1599
+ return "INVALID_DEVICE"
1600
+ end
1601
+
1602
+ # Returns a string representing the name corresponding to the error
1603
+ def name
1604
+ return "INVALID_DEVICE"
1605
+ end
1606
+
1607
+ # Returns the code corresponding to this error class
1608
+ def self.code
1609
+ return -33
1610
+ end
1611
+
1612
+ end
1613
+
1614
+ CLASSES[-33] = INVALID_DEVICE
1615
+ InvalidDevice = INVALID_DEVICE
1616
+
1617
+ class INVALID_PLATFORM < Error
1618
+
1619
+ def initialize
1620
+ super(-32)
1621
+ end
1622
+
1623
+ # Returns a string representing the name corresponding to the error classe
1624
+ def self.name
1625
+ return "INVALID_PLATFORM"
1626
+ end
1627
+
1628
+ # Returns a string representing the name corresponding to the error
1629
+ def name
1630
+ return "INVALID_PLATFORM"
1631
+ end
1632
+
1633
+ # Returns the code corresponding to this error class
1634
+ def self.code
1635
+ return -32
1636
+ end
1637
+
1638
+ end
1639
+
1640
+ CLASSES[-32] = INVALID_PLATFORM
1641
+ InvalidPlatform = INVALID_PLATFORM
1642
+
1643
+ class INVALID_DEVICE_TYPE < Error
1644
+
1645
+ def initialize
1646
+ super(-31)
1647
+ end
1648
+
1649
+ # Returns a string representing the name corresponding to the error classe
1650
+ def self.name
1651
+ return "INVALID_DEVICE_TYPE"
1652
+ end
1653
+
1654
+ # Returns a string representing the name corresponding to the error
1655
+ def name
1656
+ return "INVALID_DEVICE_TYPE"
1657
+ end
1658
+
1659
+ # Returns the code corresponding to this error class
1660
+ def self.code
1661
+ return -31
1662
+ end
1663
+
1664
+ end
1665
+
1666
+ CLASSES[-31] = INVALID_DEVICE_TYPE
1667
+ InvalidDeviceType = INVALID_DEVICE_TYPE
1668
+
1669
+ class INVALID_VALUE < Error
1670
+
1671
+ def initialize
1672
+ super(-30)
1673
+ end
1674
+
1675
+ # Returns a string representing the name corresponding to the error classe
1676
+ def self.name
1677
+ return "INVALID_VALUE"
1678
+ end
1679
+
1680
+ # Returns a string representing the name corresponding to the error
1681
+ def name
1682
+ return "INVALID_VALUE"
1683
+ end
1684
+
1685
+ # Returns the code corresponding to this error class
1686
+ def self.code
1687
+ return -30
1688
+ end
1689
+
1690
+ end
1691
+
1692
+ CLASSES[-30] = INVALID_VALUE
1693
+ InvalidValue = INVALID_VALUE
1694
+
1695
+ class KERNEL_ARG_INFO_NOT_AVAILABLE < Error
1696
+
1697
+ def initialize
1698
+ super(-19)
1699
+ end
1700
+
1701
+ # Returns a string representing the name corresponding to the error classe
1702
+ def self.name
1703
+ return "KERNEL_ARG_INFO_NOT_AVAILABLE"
1704
+ end
1705
+
1706
+ # Returns a string representing the name corresponding to the error
1707
+ def name
1708
+ return "KERNEL_ARG_INFO_NOT_AVAILABLE"
1709
+ end
1710
+
1711
+ # Returns the code corresponding to this error class
1712
+ def self.code
1713
+ return -19
1714
+ end
1715
+
1716
+ end
1717
+
1718
+ CLASSES[-19] = KERNEL_ARG_INFO_NOT_AVAILABLE
1719
+ KernelArgInfoNotAvailable = KERNEL_ARG_INFO_NOT_AVAILABLE
1720
+
1721
+ class DEVICE_PARTITION_FAILED < Error
1722
+
1723
+ def initialize
1724
+ super(-18)
1725
+ end
1726
+
1727
+ # Returns a string representing the name corresponding to the error classe
1728
+ def self.name
1729
+ return "DEVICE_PARTITION_FAILED"
1730
+ end
1731
+
1732
+ # Returns a string representing the name corresponding to the error
1733
+ def name
1734
+ return "DEVICE_PARTITION_FAILED"
1735
+ end
1736
+
1737
+ # Returns the code corresponding to this error class
1738
+ def self.code
1739
+ return -18
1740
+ end
1741
+
1742
+ end
1743
+
1744
+ CLASSES[-18] = DEVICE_PARTITION_FAILED
1745
+ DevicePartitionFailed = DEVICE_PARTITION_FAILED
1746
+
1747
+ class LINK_PROGRAM_FAILURE < Error
1748
+
1749
+ def initialize
1750
+ super(-17)
1751
+ end
1752
+
1753
+ # Returns a string representing the name corresponding to the error classe
1754
+ def self.name
1755
+ return "LINK_PROGRAM_FAILURE"
1756
+ end
1757
+
1758
+ # Returns a string representing the name corresponding to the error
1759
+ def name
1760
+ return "LINK_PROGRAM_FAILURE"
1761
+ end
1762
+
1763
+ # Returns the code corresponding to this error class
1764
+ def self.code
1765
+ return -17
1766
+ end
1767
+
1768
+ end
1769
+
1770
+ CLASSES[-17] = LINK_PROGRAM_FAILURE
1771
+ LinkProgramFailure = LINK_PROGRAM_FAILURE
1772
+
1773
+ class LINKER_NOT_AVAILABLE < Error
1774
+
1775
+ def initialize
1776
+ super(-16)
1777
+ end
1778
+
1779
+ # Returns a string representing the name corresponding to the error classe
1780
+ def self.name
1781
+ return "LINKER_NOT_AVAILABLE"
1782
+ end
1783
+
1784
+ # Returns a string representing the name corresponding to the error
1785
+ def name
1786
+ return "LINKER_NOT_AVAILABLE"
1787
+ end
1788
+
1789
+ # Returns the code corresponding to this error class
1790
+ def self.code
1791
+ return -16
1792
+ end
1793
+
1794
+ end
1795
+
1796
+ CLASSES[-16] = LINKER_NOT_AVAILABLE
1797
+ LinkerNotAvailable = LINKER_NOT_AVAILABLE
1798
+
1799
+ class COMPILE_PROGRAM_FAILURE < Error
1800
+
1801
+ def initialize
1802
+ super(-15)
1803
+ end
1804
+
1805
+ # Returns a string representing the name corresponding to the error classe
1806
+ def self.name
1807
+ return "COMPILE_PROGRAM_FAILURE"
1808
+ end
1809
+
1810
+ # Returns a string representing the name corresponding to the error
1811
+ def name
1812
+ return "COMPILE_PROGRAM_FAILURE"
1813
+ end
1814
+
1815
+ # Returns the code corresponding to this error class
1816
+ def self.code
1817
+ return -15
1818
+ end
1819
+
1820
+ end
1821
+
1822
+ CLASSES[-15] = COMPILE_PROGRAM_FAILURE
1823
+ CompileProgramFailure = COMPILE_PROGRAM_FAILURE
1824
+
1825
+ class EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST < Error
1826
+
1827
+ def initialize
1828
+ super(-14)
1829
+ end
1830
+
1831
+ # Returns a string representing the name corresponding to the error classe
1832
+ def self.name
1833
+ return "EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST"
1834
+ end
1835
+
1836
+ # Returns a string representing the name corresponding to the error
1837
+ def name
1838
+ return "EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST"
1839
+ end
1840
+
1841
+ # Returns the code corresponding to this error class
1842
+ def self.code
1843
+ return -14
1844
+ end
1845
+
1846
+ end
1847
+
1848
+ CLASSES[-14] = EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST
1849
+ ExecStatusErrorForEventsInWaitList = EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST
1850
+
1851
+ class MISALIGNED_SUB_BUFFER_OFFSET < Error
1852
+
1853
+ def initialize
1854
+ super(-13)
1855
+ end
1856
+
1857
+ # Returns a string representing the name corresponding to the error classe
1858
+ def self.name
1859
+ return "MISALIGNED_SUB_BUFFER_OFFSET"
1860
+ end
1861
+
1862
+ # Returns a string representing the name corresponding to the error
1863
+ def name
1864
+ return "MISALIGNED_SUB_BUFFER_OFFSET"
1865
+ end
1866
+
1867
+ # Returns the code corresponding to this error class
1868
+ def self.code
1869
+ return -13
1870
+ end
1871
+
1872
+ end
1873
+
1874
+ CLASSES[-13] = MISALIGNED_SUB_BUFFER_OFFSET
1875
+ MisalignedSubBufferOffset = MISALIGNED_SUB_BUFFER_OFFSET
1876
+
1877
+ class MAP_FAILURE < Error
1878
+
1879
+ def initialize
1880
+ super(-12)
1881
+ end
1882
+
1883
+ # Returns a string representing the name corresponding to the error classe
1884
+ def self.name
1885
+ return "MAP_FAILURE"
1886
+ end
1887
+
1888
+ # Returns a string representing the name corresponding to the error
1889
+ def name
1890
+ return "MAP_FAILURE"
1891
+ end
1892
+
1893
+ # Returns the code corresponding to this error class
1894
+ def self.code
1895
+ return -12
1896
+ end
1897
+
1898
+ end
1899
+
1900
+ CLASSES[-12] = MAP_FAILURE
1901
+ MapFailure = MAP_FAILURE
1902
+
1903
+ class BUILD_PROGRAM_FAILURE < Error
1904
+
1905
+ def initialize
1906
+ super(-11)
1907
+ end
1908
+
1909
+ # Returns a string representing the name corresponding to the error classe
1910
+ def self.name
1911
+ return "BUILD_PROGRAM_FAILURE"
1912
+ end
1913
+
1914
+ # Returns a string representing the name corresponding to the error
1915
+ def name
1916
+ return "BUILD_PROGRAM_FAILURE"
1917
+ end
1918
+
1919
+ # Returns the code corresponding to this error class
1920
+ def self.code
1921
+ return -11
1922
+ end
1923
+
1924
+ end
1925
+
1926
+ CLASSES[-11] = BUILD_PROGRAM_FAILURE
1927
+ BuildProgramFailure = BUILD_PROGRAM_FAILURE
1928
+
1929
+ class IMAGE_FORMAT_NOT_SUPPORTED < Error
1930
+
1931
+ def initialize
1932
+ super(-10)
1933
+ end
1934
+
1935
+ # Returns a string representing the name corresponding to the error classe
1936
+ def self.name
1937
+ return "IMAGE_FORMAT_NOT_SUPPORTED"
1938
+ end
1939
+
1940
+ # Returns a string representing the name corresponding to the error
1941
+ def name
1942
+ return "IMAGE_FORMAT_NOT_SUPPORTED"
1943
+ end
1944
+
1945
+ # Returns the code corresponding to this error class
1946
+ def self.code
1947
+ return -10
1948
+ end
1949
+
1950
+ end
1951
+
1952
+ CLASSES[-10] = IMAGE_FORMAT_NOT_SUPPORTED
1953
+ ImageFormatNotSupported = IMAGE_FORMAT_NOT_SUPPORTED
1954
+
1955
+ class IMAGE_FORMAT_MISMATCH < Error
1956
+
1957
+ def initialize
1958
+ super(-9)
1959
+ end
1960
+
1961
+ # Returns a string representing the name corresponding to the error classe
1962
+ def self.name
1963
+ return "IMAGE_FORMAT_MISMATCH"
1964
+ end
1965
+
1966
+ # Returns a string representing the name corresponding to the error
1967
+ def name
1968
+ return "IMAGE_FORMAT_MISMATCH"
1969
+ end
1970
+
1971
+ # Returns the code corresponding to this error class
1972
+ def self.code
1973
+ return -9
1974
+ end
1975
+
1976
+ end
1977
+
1978
+ CLASSES[-9] = IMAGE_FORMAT_MISMATCH
1979
+ ImageFormatMismatch = IMAGE_FORMAT_MISMATCH
1980
+
1981
+ class MEM_COPY_OVERLAP < Error
1982
+
1983
+ def initialize
1984
+ super(-8)
1985
+ end
1986
+
1987
+ # Returns a string representing the name corresponding to the error classe
1988
+ def self.name
1989
+ return "MEM_COPY_OVERLAP"
1990
+ end
1991
+
1992
+ # Returns a string representing the name corresponding to the error
1993
+ def name
1994
+ return "MEM_COPY_OVERLAP"
1995
+ end
1996
+
1997
+ # Returns the code corresponding to this error class
1998
+ def self.code
1999
+ return -8
2000
+ end
2001
+
2002
+ end
2003
+
2004
+ CLASSES[-8] = MEM_COPY_OVERLAP
2005
+ MemCopyOverlap = MEM_COPY_OVERLAP
2006
+
2007
+ class PROFILING_INFO_NOT_AVAILABLE < Error
2008
+
2009
+ def initialize
2010
+ super(-7)
2011
+ end
2012
+
2013
+ # Returns a string representing the name corresponding to the error classe
2014
+ def self.name
2015
+ return "PROFILING_INFO_NOT_AVAILABLE"
2016
+ end
2017
+
2018
+ # Returns a string representing the name corresponding to the error
2019
+ def name
2020
+ return "PROFILING_INFO_NOT_AVAILABLE"
2021
+ end
2022
+
2023
+ # Returns the code corresponding to this error class
2024
+ def self.code
2025
+ return -7
2026
+ end
2027
+
2028
+ end
2029
+
2030
+ CLASSES[-7] = PROFILING_INFO_NOT_AVAILABLE
2031
+ ProfilingInfoNotAvailable = PROFILING_INFO_NOT_AVAILABLE
2032
+
2033
+ class OUT_OF_HOST_MEMORY < Error
2034
+
2035
+ def initialize
2036
+ super(-6)
2037
+ end
2038
+
2039
+ # Returns a string representing the name corresponding to the error classe
2040
+ def self.name
2041
+ return "OUT_OF_HOST_MEMORY"
2042
+ end
2043
+
2044
+ # Returns a string representing the name corresponding to the error
2045
+ def name
2046
+ return "OUT_OF_HOST_MEMORY"
2047
+ end
2048
+
2049
+ # Returns the code corresponding to this error class
2050
+ def self.code
2051
+ return -6
2052
+ end
2053
+
2054
+ end
2055
+
2056
+ CLASSES[-6] = OUT_OF_HOST_MEMORY
2057
+ OutOfHostMemory = OUT_OF_HOST_MEMORY
2058
+
2059
+ class OUT_OF_RESOURCES < Error
2060
+
2061
+ def initialize
2062
+ super(-5)
2063
+ end
2064
+
2065
+ # Returns a string representing the name corresponding to the error classe
2066
+ def self.name
2067
+ return "OUT_OF_RESOURCES"
2068
+ end
2069
+
2070
+ # Returns a string representing the name corresponding to the error
2071
+ def name
2072
+ return "OUT_OF_RESOURCES"
2073
+ end
2074
+
2075
+ # Returns the code corresponding to this error class
2076
+ def self.code
2077
+ return -5
2078
+ end
2079
+
2080
+ end
2081
+
2082
+ CLASSES[-5] = OUT_OF_RESOURCES
2083
+ OutOfResources = OUT_OF_RESOURCES
2084
+
2085
+ class MEM_OBJECT_ALLOCATION_FAILURE < Error
2086
+
2087
+ def initialize
2088
+ super(-4)
2089
+ end
2090
+
2091
+ # Returns a string representing the name corresponding to the error classe
2092
+ def self.name
2093
+ return "MEM_OBJECT_ALLOCATION_FAILURE"
2094
+ end
2095
+
2096
+ # Returns a string representing the name corresponding to the error
2097
+ def name
2098
+ return "MEM_OBJECT_ALLOCATION_FAILURE"
2099
+ end
2100
+
2101
+ # Returns the code corresponding to this error class
2102
+ def self.code
2103
+ return -4
2104
+ end
2105
+
547
2106
  end
2107
+
2108
+ CLASSES[-4] = MEM_OBJECT_ALLOCATION_FAILURE
2109
+ MemObjectAllocationFailure = MEM_OBJECT_ALLOCATION_FAILURE
548
2110
  end
549
2111
  FFI.typedef :int8, :cl_char
550
2112
  FFI.typedef :uint8, :cl_uchar